12.07.2013, 23:13
Hello i need help when i start event and player join in event need wait 30 Seconda for event start and when event start tell Participants of player.
Thanks
Thanks

new Event[MAX_PLAYERS];
// When a player joins the event:
Event[playerid] = 1;
// When a player leaves the event or disconnects:
Event[playerid] = 0;
// When you want to count participants and show the count to playerid:
new participants,msg[144];
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Event[i]) participants++;
}
format(msg,sizeof(msg),"There are %i participants.",participants);
SendClientMessage(playerid,-1,msg);