Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,389
» Latest member: JimmyElvis
» Forum threads: 3,262
» Forum posts: 12,096

Full Statistics

Online Users
There are currently 1938 online users.
» 1 Member(s) | 1933 Guest(s)
Baidu, Bing, Google, Yandex, Client GordonSn

Latest Threads
прогон сайтов по каталога...
Forum: General Support
Last Post: GordonSn
22 minutes ago
» Replies: 0
» Views: 15
сантехник мошенник https:...
Forum: General Support
Last Post: GordonSn
48 minutes ago
» Replies: 0
» Views: 17
Where to Buy Legal Prop B...
Forum: General Support
Last Post: Isaiah14
53 minutes ago
» Replies: 0
» Views: 23
Buy 3MMC KETAMINE#DMT#VAP...
Forum: Security & Protection Support
Last Post: alvarezebill
59 minutes ago
» Replies: 0
» Views: 23
Wedding dress shopping
Forum: Self Introduction
Last Post: hiwob
1 hour ago
» Replies: 0
» Views: 22
A practical approach to r...
Forum: General Support
Last Post: alanpoe
1 hour ago
» Replies: 0
» Views: 23
видео как взломать голоса...
Forum: General Support
Last Post: GordonSn
1 hour ago
» Replies: 0
» Views: 19
безплатні голоса вк
Forum: General Support
Last Post: GordonSn
1 hour ago
» Replies: 0
» Views: 17
At first, it all seemed l...
Forum: General Discussion
Last Post: JimmyElvis
2 hours ago
» Replies: 0
» Views: 26
Cryptocurrency Recovery F...
Forum: General Support
Last Post: jeffersontmas1
2 hours ago
» Replies: 0
» Views: 20

 
  Renzkie Staff Application
Posted by: Renzkie - 05-29-2017, 01:18 AM - Forum: Recruitment process of EHN - Replies (2)

  • Real life name:Clarenz James Fusilero
  • Location (place of residence)Tonguehilippines
  • Full date of birth and age:January 6 , 2000
  • When did you join the community?:12-16-2016
  • Why would you like to join the staff team? (255+ words)::I heard that WorldHosting is a besthosting . I shall be accepted because i have experience being an staff in a web hosting especially in UNIQUE-HOSTING and TOWNZHOST . Townzhost removed me but i dont know why . I have experience being an admin in [OGP]Open Game Panel too. I want to work here because of some reasons . 1. It is a big hosting company . 2.Staff members are hard working . I will work for as long as i can , I will help newbies in their servers , I will give them the best advice i can give . I will help the others those who need help and do the things that they cant do on their own . 
  • E-mail address: renzkie_fusilero@yahoo.com
  • Job/professions: Support Team and Sales

Print this item

  Nick
Posted by: Nick - 05-04-2017, 11:20 PM - Forum: Self Introduction - Replies (6)

I am new here i joined today. I am planning to start my samp server again. I had a server before if you guys know it High Generation RP and now im starting it again. I am 17y old. I am looking for some active admins for the community feel free to pm me everyone

Print this item

Sad Hacking........ :(
Posted by: JohnTurbo - 05-04-2017, 10:49 AM - Forum: Problems & Suggestions - Replies (2)

Hello Guys, my sa-mp server this week is getting DDOSED & Bots Connecting hacking too many times so its getting down several times on the day please guys enable DDOS Protection for the free package please ???

Print this item

  VSDC Free Video Editor
Posted by: Debjit - 04-25-2017, 01:48 PM - Forum: Useful Softwares - No Replies

download from here:Click here to download
The program is meant for editing videos and creating different effects,its just a simple video editor which can be used by beginners to get into the world of video editing.This video editor is fully free but you can also upgrade it to the pro version.This video editor dosen't take much system resources which means you can use it on a low end pc too.
HAVE FUN!!!

Print this item

  Hello
Posted by: ReBorn Dude - 04-24-2017, 02:41 PM - Forum: Self Introduction - Replies (4)

My name's Tom Carter, and I'm 24 years old. I'm an American, but I live in Pakistan (For some Reason). And I was too much happy when I saw that I can get free servers. And I'm sure you guys will help me out.

Print this item

  Lance..?
Posted by: Peki - 04-19-2017, 08:27 PM - Forum: General Discussion - Replies (1)

Lance that's kinda rude what you did.. I posted a more than a week apllication for EHN and after 4-5 days you answered with 'Pending'. Than some guy posted application for EHN too, and tomorrow you replied him but me didn't.. After a week of replying on my post you didn't even look at it.. Sending you some emails pms and etc.. but nothing. Is it so hard to say that im declined or allowed..

Print this item

  How to create a pickup that can be picked-up on-foot and in-vehicle
Posted by: alimaroco - 04-13-2017, 11:10 PM - Forum: Tutorials - Replies (1)

 
his allows pickups to be picked up on foot and in vehicle. This is not much of a tutorial.

Requirements

The Script

First we make a limit for pickups, since we're gonna use 2 pickups per 1 pickup in this tutorial, we're gonna cut the limit in half

Code:

Quote:#define MAX_PICKUPS_EX (MAX_PICKUPS / 2) // which is 2048, Limit has been cut in half


Secondly, create the enum data structure for the ID storing

g_P_ID repesents the real pickup model that can only be picked up on - foot, and g_P_Invisible_ID represents the invisible model that can only be picked up in vehicle

Code:

Quote:enum e_Pickups
{
   g_P_ID,
g_P_Invisible_ID
};

Thirdly we create the variables for the iterator and to manipulate the enum

Code:

Quote:new gPickupData[MAX_PICKUPS_EX][e_Pickups],

Iterator:gPickups[MAX_PICKUPS_EX];


Fourthly we make the pickup creation function

This function creates the model and an invisible pickup (19300) SA-MP 0.3c+ (Is it?)

Code:

Quote:stock CreateStaticPickup(model, Float:x, Float:y, Float:z, virtualworld = 0)
{
        new id = Iter_Free(gPickups);
        gPickups[id][g_P_ID] = CreatePickup(model, 14, x, y, z, virtualworld);
        gPickups[id][g_P_Invisible_ID] = CreatePickup(19300, 14, x, y, z, virtualworld);
        return id;
}


Fifthly we create a way to SAFELY destroy the pickups

Code:

Quote:stock DestroyStaticPickup(id, &next)
{
     if(Iter_Contains(gPickups, id)) return -1;
     DestroyPickup(gPickups[id][g_P_ID]);
     DestroyPickup(gPickups[id][g_P_Invisible_ID]);
     Iter_SafeRemove(gPickups, id, next);
     return next;
}


Lastly, we need someway to detect if either ONE of the pickups were entered, right? Don't worry we only need this ONCE, because your not gonna enter the pickup while your in both states, the callback only gets called in either state

Code:

Quote:public OnPlayerPickUpPickup(playerid, pickupid)
{
foreach(gPickups, p)
{
   if(gPickups[p][g_P_ID] != pickupid && gPickups[p][g_P_Invisible_ID] != pickupid) continue;
   // do shit here
   new next; // I don't even think that this is needed, but for safety, let's leave it.
    p = DestroyStaticPickup(p, next); // Let's SAFELY destroy the pickup without breaking the loop
break;
}
return 1;
}


The Full Code

Code:

Quote:#define MAX_PICKUPS_EX (MAX_PICKUPS / 2) // which is 2048, Limit has been cut in half

enum e_Pickups
{
   g_P_ID,
   g_P_Invisible_ID
};

new gPickupData[MAX_PICKUPS_EX][e_Pickups],
Iterator:gPickups[MAX_PICKUPS_EX];

stock CreateStaticPickup(model, Float:x, Float:y, Float:z, virtualworld = 0)
{
      new id = Iter_Free(gPickups);
      gPickups[id][g_P_ID] = CreatePickup(model, 14, x, y, z, virtualworld);
      gPickups[id][g_P_Invisible_ID] = CreatePickup(19300, 14, x, y, z, virtualworld);
      return id;
}

stock DestroyStaticPickup(id, &next)
{
       if(Iter_Contains(gPickups, id)) return -1;
       DestroyPickup(gPickups[id][g_P_ID]);
       DestroyPickup(gPickups[id][g_P_Invisible_ID]);
       Iter_SafeRemove(gPickups, id, next);
       return next;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
foreach(gPickups, p)
{
   if(gPickups[p][g_P_ID] != pickupid && gPickups[p][g_P_Invisible_ID] != pickupid) continue;
   // do shit here
   new next; // I don't even think that this is needed, but for safety, let's leave it.
    p = DestroyStaticPickup(p, next); // Let's SAFELY destroy the pickup without breaking the loop
break;
}
return 1;
}

- Enjoy

Credits
  • Kalcor & The SA-MP Team (For SA-MP and the Invisible Object)

Print this item

  Dialog System
Posted by: alimaroco - 04-13-2017, 09:16 PM - Forum: Tutorials - Replies (2)

Hello guys,

today i'm going to show you how to detail anything you want in any dialog! That's very easy but yet some people do not know how to do so. So, i made this tutorial to show them some examples of it. So, without wasting times, we'll start our tutorial! 


STEP 1 - USING FORMAT


So, about using formats, it's really very simple. I'll show you an example of it right now.

PHP Code:
Code:
CMD:name(playerid,params[]) 

    new string[128], /*This is to define the string and the size of it*/ pName[MAX_PLAYER_NAME]; // Name variable 
    GetPlayerName(playerid, pName, sizeof(pName)); // Getting the player name 
    format(string, sizeof(string), "Your name is %s with ID %i !", pName, playerid); // Formatting the message 
    SendClientMessage(playerid, -1, string); // Sending the message to the player 
    return 1; 
}  

You see, it's very simple. But now, instead of using SendClientMessage, we will change it to ShowPlayerDialog!

Format explained more easily here!


STEP 2 - SHOWPLAYERDIALOG


So, now we will change the same thing to showplayerdialog!

PHP Code:
Code:
CMD:name(playerid,params[]) 

    new string[128], /*This is to define the string and the size of it*/ pName[MAX_PLAYER_NAME]; // Name variable 
    GetPlayerName(playerid, pName, sizeof(pName)); // Getting the player name 
    format(string, sizeof(string), "Your Name: %s \n Your ID: %i", pName, playerid); // Formatting the message 
    ShowPlayerDialog(playerid, 21, DIALOG_STYLE_MSGBOX, "EXAMPLE" , string , "Ok", ""); // ShowPlayerDialog 
    return 1; 
}  

So now, we have formatted it to ShowPlayerDialog!

Additional Note: While formatting to message, use \n for the dialog to skip one line! And also instead of usig DIALOG_STYLE_MSGBOX you can use any type of dialog style, this doesn't require only DIALOG_STYLE_MSGBOX!


STEP 3 - STRCAT


So, we use strcat to make really long dialog without making them crashing, strcat has also other more purposes.

Here, strcat is more explained!

PHP Code:
Code:
CMD:name(playerid,params[]) 

    new Dialog[128], /*This is to define the string and the size of it*/ pName[MAX_PLAYER_NAME]; // Name variable 
    GetPlayerName(playerid, pName, sizeof(pName)); // Getting the player name 
    format(Dialog, sizeof(Dialog), "Your Name: %s ", pName); // Strcat 
    format(Dialog, sizeof(Dialog), "Your ID: %i ", playerid); // Strcat 
    // You can add more formats here 
    ShowPlayerDialog(playerid, 21, DIALOG_STYLE_MSGBOX, "EXAMPLE" , Dialog , "Ok", ""); // ShowPlayerDialog 
    return 1; 
}  


STEP 4 - DEFINE THEM


So, now we are going to define the IDs of the dialogs we are going to be using. Defining dialogs are important! If we do not define them, we can make another dialog and use an already defined id for a dialog. So, let's proceed in for more information.

PHP Code:
Code:
enum  

    DIALOG_NAME 


#define DIALOG_NAME 1 
  
CMD:name(playerid,params[]) 

    new string[128], /*This is to define the string and the size of it*/ pName[MAX_PLAYER_NAME]; // Name variable 
    GetPlayerName(playerid, pName, sizeof(pName)); // Getting the player name 
    format(string, sizeof(string), "Your Name: %s \n Your ID: %i", pName, playerid); // Formatting the message 
    ShowPlayerDialog(playerid, DIALOG_NAME, DIALOG_STYLE_MSGBOX, "EXAMPLE" , string , "Ok", ""); // ShowPlayerDialog and using defined dialog IDs 
    return 1; 
}  



END OF TUTORIAL



Credits

Karan007 - Created this tutorial 
Jim - Created this tutorial 
SA-MP Team - Created SA-MP
Y_Less - Sscanf
Zeex - ZCMD
PawnHunter - Strcat suggestion
MartinSwag - Defining suggestion
TheBetaFox - Strcat tutorial

Print this item

  How to create a Timer
Posted by: alimaroco - 04-13-2017, 07:06 PM - Forum: Tutorials - Replies (1)

Hello everyone, as we know. Is there people who do not know what is a timer and how to create it. In this tutorial i will teach how to:

We create the timer

Code:

Quote:public OnGameModeInit()
{
                      //==========================================================================
                      // Don't use these lines if it's a filterscript
                      SetGameModeText("Blank Gamemode");

SetTimer("RandomMessage", 5000, 1);


SetTimer is in where create the timer, "RandomMessage" is the name of the callback. (5000 = Five Seconds)

After, we create the forward which will call the callback:

Code:

Quote:forward RandomMessage(playerid);
public RandomMessage(playerid)
{
      SendClientMessage(playerid, 0xFFFFFFFF,"Register at our forum! forum.sa-mp.com");
      return 1;
}


You can create more timers using more stuff.. THis is just a basic tutorial. I hope it helps you...

Print this item

  Hey ;)
Posted by: Peki - 04-13-2017, 10:28 AM - Forum: Self Introduction - Replies (5)

Hello, my name is Pero, i'm from Serbia. I'm 20years old and i'm working in lear.com
I'm good with clients, I'm willing to help i know many languages like eng, german,russian,balkanian ofc..,and a little bit of a franch. That's it.

Print this item