30.06.2013, 21:04
Is this somewhere close of what you mean?
EDIT: Late!
pawn Код:
CMD:piss(playerid,params[])
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
for(new i = 0; i < MAX_PLAYERS; I++)
{
new name[MAX_PLAYER_NAME],string[128];
new slapper[MAX_PLAYER_NAME];
GetPlayerName(i,name,sizeof(name));
GetPlayerName(playerid,slapper,sizeof(slapper));
if(IsPlayerInRangeOfPoint(i,1.5,X,Y,Z)
{
format(string,sizeof(string),"%s is pissing on %s.",slapper,name);
SendClientMessageToAll(0xFF4000,string);
// Do your animation here.
}
}
return 1;
}