11.10.2010, 20:12
How do i make a command so when i type it it gives you like 3 weapons?
Please Answere guys
Please Answere guys
if(!strcmp(cmdtext, "/Yourcommand", true, 1)) //This is the command { if(IsPlayerAdmin(playerid)) { SendClientMessage(playerid,COLOR_WHITE,"You get 3 weapons from my :*!"); GivePlayerWeapon(playerid, weaponid, ammo[1-500]); //Weapon ids GivePlayerWeapon(playerid, weaponid, ammo[1-500]); GivePlayerWeapon(playerid, weaponid, ammo[1-500]); } return 1; } |
Your Begginner right?read the Scripting Basics but anyway,here is the command
|
if (strcmp("/weapons", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,24,100); // DEAGLE
GivePlayerWeapon(playerid,31,100); // M4
GivePlayerWeapon(playerid,29,100); // MP5 && 29 is the weapon id 100 is the ammo
return 1;
}