01.12.2012, 10:46
You will need ZCMD and sscanf. There are TONS of tutorials to do this.
A simple command example
A simple command example
pawn Код:
CMD:givemp5(playerid,params[])//givemp5 is your command name
{
new targetid;//The id to which you want to give weapon
if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,-1,"Usage : /givemp5 [ID]");//if he typed wrong
GivePlayerWeapon(targetid,WEAPON_MP5,1000);
return 1;
}