26.04.2011, 22:25
How should it work:
I am typing in an command like ((/armor ID Amount)), the id i typed in will get a client message like((My Name offers u protection for 2000$)). So the player can accept it by typing in ((/accept armor))!!
this could be the offer part!! havent tested that script yet!! but how to accept??
Or how did u guys do that?
I am typing in an command like ((/armor ID Amount)), the id i typed in will get a client message like((My Name offers u protection for 2000$)). So the player can accept it by typing in ((/accept armor))!!
Код:
ocmd:armor(playerid,params[]) { new pID,amount,string[128]; if(sscanf(params,"ui",pID,amount))SendClientMessage(playerid,COLOR_RED, "/armor ID Amount"); PlayerSave(pID); format(string,sizeof(string),"%s offered you protection for %s.",Charname(playerid),amount); SendClientMessageToAll(COLOR_LIGHTBLUE,string); return 1; }
Or how did u guys do that?