message player in range of point
#6

you will do a loop like this

Код:
for(new i = 0; i<MAX_PLAYERS; i++){//this will loop until i is bigger then max players and after each loop i will be one more
if(IsPlayerInRangeOfPoint(i, 50.0, x, y ,z){//instead of playerid you type i because the current playerid is i
SendClientMessage(i, COLOR_WHITE, "You hear the signal to start the race (change it as you want)");//send the mesage to the player with id i here to
}
}
//this is how you make everybody near the point hear it, but if you want it to countdown you'll have to set a timer for every second and then kill it when it have counted done.
SetTimer
Hope you understand
Reply


Messages In This Thread
message player in range of point - by cssbart - 01.08.2012, 19:40
Respuesta: message player in range of point - by HarlemSAMP - 01.08.2012, 19:44
Re: message player in range of point - by cssbart - 01.08.2012, 19:49
Re: message player in range of point - by Ranama - 01.08.2012, 19:55
Re: message player in range of point - by cssbart - 01.08.2012, 19:58
Re: message player in range of point - by Ranama - 01.08.2012, 20:10
Re: message player in range of point - by cssbart - 01.08.2012, 20:22

Forum Jump:


Users browsing this thread: 1 Guest(s)