22.09.2010, 20:51
pawn Код:
Anycmd system(playerid, params[])
{
// may want to #pragma unused params here if you dont want to have any parameters in the pee command.
new Float: POS[3];
GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
for(new i; i < MAX_PLAYERS+1; i++)
{
if(IsPlayerConnected(i) && IsPlayerInRange(i, 2, 2 , POS[0], POS[1], POS[2]))
{
new string[128];
format(string, 128, "%s pissed on %s",GetPlayerNameshit(playerid),GetPlayerNameshit(i));
break;
}
}
}