Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock SendNearbyMessage(playerid, Float:range, color, message[]) {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- foreach(Player, i) {
- if(GetPlayerInterior(i) == GetPlayerInterior(playerid) && GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid)) {
- if(GetPlayerDistanceFromPoint(i,x,y,z) <= range) {
- SendClientMessage(i, color, message);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement