07.11.2010, 02:20
(
Последний раз редактировалось willsuckformoney; 07.11.2010 в 02:54.
)
How to fix this? It only works for one person.
http://tinypic.com/r/2r2napy/7
http://tinypic.com/r/xpd5cz/7
http://tinypic.com/r/147ade/7
http://tinypic.com/r/34t1swn/7
http://tinypic.com/r/jsehkx/7
Look at the ids, the names and the lists, the one that has otto twice in it was supposed to be backfire.
pawn Код:
dcmd_wank(playerid,params[])
{
new string[128],ID,aName[MAX_PLAYER_NAME],Name[MAX_PLAYER_NAME],Float:x,Float:y,Float:z;
GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerName(ID,aName,sizeof(aName));
GetPlayerPos(playerid,x,y,z);
if(sscanf(params,"u",ID))
{
format(string,sizeof(string),"%s (%d) wanks on himself.",Name,playerid);
SendClientMessageToAll(white,string);
ApplyAnimation(playerid,"PAULNMAC","wank_out",4.1,1,1,1,1,1,1);
}
else if(IsPlayerInRangeOfPoint(ID,5,x,y,z))
{
format(string,sizeof(string),"%s (%d) wanks on %s (%d).",Name,playerid,aName,ID);
SendClientMessageToAll(white,string);
ApplyAnimation(playerid,"PAULNMAC","wank_out",4.1,1,1,1,1,1,1);
} else return SendClientMessage(playerid,red,"Player is not close enough");
return 1;
}
http://tinypic.com/r/xpd5cz/7
http://tinypic.com/r/147ade/7
http://tinypic.com/r/34t1swn/7
http://tinypic.com/r/jsehkx/7
Look at the ids, the names and the lists, the one that has otto twice in it was supposed to be backfire.