30.12.2011, 21:02
Quote:
Thank you mate this worked.
For all other who got: error 017: undefined symbol "ProxDetector" This code worked for me: ProxDetector(Float:radi, playerid, caststr[],col1,col2,col3,col4,col5) { new Float:PlayerPos[3]; GetPlayerPos(playerid, PlayerPos[0], PlayerPos[1], PlayerPos[2]); for(new giveplayerid;giveplayerid!=MAX_PLAYERS;giveplayeri d++) { if(!IsPlayerConnected(giveplayerid)) continue; if(IsPlayerInRangeOfPoint(giveplayerid, floatdiv(radi,16), PlayerPos[0], PlayerPos[1], PlayerPos[2])) SendClientMessage(giveplayerid, col1, caststr); else if(IsPlayerInRangeOfPoint(giveplayerid, floatdiv(radi,,PlayerPos[0], PlayerPos[1], PlayerPos[2])) SendClientMessage(giveplayerid, col2, caststr); else if(IsPlayerInRangeOfPoint(giveplayerid, floatdiv(radi,4), PlayerPos[0], PlayerPos[1], PlayerPos[2])) SendClientMessage(giveplayerid, col3, caststr); else if(IsPlayerInRangeOfPoint(giveplayerid, floatdiv(radi,2), PlayerPos[0], PlayerPos[1], PlayerPos[2])) SendClientMessage(giveplayerid, col4, caststr); else if(IsPlayerInRangeOfPoint(giveplayerid, radi, PlayerPos[0], PlayerPos[1], PlayerPos[2])) SendClientMessage(giveplayerid, col5, caststr); } return true; } |