24.01.2011, 21:11
Hello guys, i just want to know how to make this that you can choise the weapon you want... If you do /giveweapon playerid weapid
This one only give you deagle
This one only give you deagle
pawn Код:
#include <a_samp>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Give Weapon CMD");
print("--------------------------------------\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/giveweapon", true) == 0)
{
GivePlayerWeapon(playerid, 24, 500);
SendClientMessage(playerid, 0xFF4444FF "You gave an weapon!");
return 1;
}
return 0;
}