Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerText(playerid, text[])
- {
- #if !defined MAX_DRAW
- #define MAX_DRAW 100.0 // muda a distancia aqui
- #endif
- static
- Float:xPos,
- Float:yPos,
- Float:zPos
- ;
- GetPlayerPos(playerid, xPos, yPos, zPos);
- for(new i; i < MAX_PLAYERS; ++i) if(IsPlayerConnected(i))
- {
- if(!IsPlayerInRangeOfPoint(i, MAX_DRAW, xPos, yPos, zPos)) continue;
- SendClientMessage(i, 0xFFFFFFFF, text);
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement