Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock CountPlayersRangeForMy(pid, Float:range)
- {
- new players = -1;
- static Float:x, Float:y, Float:z;
- GetPlayerPos(pid, x,y,z);
- for(new i; i < MAX_PLAYERS; ++i)
- {
- if(i != pid)
- {
- if(IsPlayerInRangeOfPoint(pid, range, x,y,z))
- {
- players++;
- }
- }
- }
- return players;
- }
- // Esta função conta quantos players estão perto deele.
Advertisement
Add Comment
Please, Sign In to add comment