?? Do something to others command ??
#2

You will need ZCMD and sscanf. There are TONS of tutorials to do this.

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;
}
Reply


Messages In This Thread
?? Do something to others command ?? - by NicholasA - 01.12.2012, 10:40
Re: ?? Do something to others command ?? - by [MM]RoXoR[FS] - 01.12.2012, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)