Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kDetector(Float: radi, playerid, string[], color)
- {
- if(!IsPlayerConnected(playerid)) return false;
- static kPos[3];
- GetPlayerPos(playerid, kPos[0], kPos[1], kPos[2]);
- for(new i; i < MAX_PLAYERS; ++i) if(IsPlayerConnected(i)) {
- if(IsPlayerInRangeOfPoint(i, radi, kPos[0], kPos[1], kPos[2])) {
- SendClientMessage(i, color1, string);
- continue;
- }
- if(IsPlayerInRangeOfPoint(i, radi*2, kPos[0], kPos[1], kPos[2])) {
- SendClientMessage(i, color2, string);
- continue;
- }
- if(IsPlayerInRangeOfPoint(i, radi*3, kPos[0], kPos[1], kPos[2])) {
- SendClientMessage(i, color3, string);
- }
- }
- return true;
- }
- kDetector(Float: radi, playerid, string[], color)
- {
- if(!IsPlayerConnected(playerid)) return false;
- static kPos[3];
- GetPlayerPos(playerid, kPos[0], kPos[1], kPos[2]);
- for(new i; i < MAX_PLAYERS; i++) {
- if(!IsPlayerInRangeOfPoint(i, radi, kPos[0], kPos[1], kPos[2])) continue;
- SendClientMessage(i, color, string);
- }
- return true;
- }
- // By The Knight
- // Change by DraKiNs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement