Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock SendRangedMessage(playerid, color, msg[], Float: r)
- {
- new Float: Pos[3], players = GetMaxPlayers();
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- for(new i; i < players; i++)
- {
- if(!IsPlayerConnected(i)) continue;
- if(IsPlayerInRangeOfPoint(i, r, Pos[0], Pos[1], Pos[2])) SendClientMessage(i, color, msg);
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment