Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock SendMessageToVirtualWorld(worldid, color, str[], Float:distance) // by Johurt
- {
- new Float:pPos[3];
- for(new p; p < MAX_PLAYERS; p++)
- {
- if(IsPlayerNPC(p) || !IsPlayerConnected(p)) continue;
- GetPlayerPos(p, pPos[0], pPos[1], pPos[2]);
- if(IsPlayerInRangeOfPoint(p, distance, pPos[0], pPos[1], pPos[2]) && GetPlayerVirtualWorld(p) == worldid)
- {
- SendClientMessage(p, color, str);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement