Guard/Armor ppl, so they have to accept it!
#1

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))!!

Код:
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;
}
this could be the offer part!! havent tested that script yet!! but how to accept??

Or how did u guys do that?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)