21.01.2013, 12:02
Quote:
You have
pawn Код:
|
Код:
new IsPlayerSpawned[MAX_PLAYERS];
Код:
public NearByMessage(playerid, color, string[], Float: range) { new Float: PlayerX, Float: PlayerY, Float: PlayerZ; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && IsPlayerSpawned(i)) { GetPlayerPos(playerid, PlayerX, PlayerY, PlayerZ); if(IsPlayerInRangeOfPoint(i, range, PlayerX, PlayerY, PlayerZ)) { if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)) { SendClientMessage(i, color, string); } } } } }