check everyone's x,y,z
#1

I'm not very good with loops. I run a godfather edit and when someone does /open on their house to unlock the door i want it so that the server checks everyone xyz to see if they are standing within a radius of 5 of the house entrance if they are then i want it to send a client message. i can get all the other code down i just need a way to loop all the players online to check all their xyz cords
Reply
#2

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
This will loop through all players. I would also suggest using playertopoint other than XYZ Cords.
Reply
#3

i was planning on useing playertopoint... thanks for the loop man
Reply
#4

resolved
Reply
#5

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) GetPlayerPos(i, X, Y, Z);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)