01.08.2012, 19:40
message player in range of point
is there such command for this or work around
is there such command for this or work around
CMD:help(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, x y z)
ShowPlayerDialog(playerid, yourdialogid, DIALOG_STYLE_LIST, "Help Menu", "BlahBla", "Ok", "Cancel";)
GivePlayerPenis(playerid, blowjob);
return 1;
}
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