Participants
#1

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
Reply
#2

anyone?
Reply
#3

Add a timer to the command then forward it to perform the command.
Reply
#4

ahh you dont understand i dont want timer when event start tell how much player have join in event with Number
Reply
#5

pawn Код:
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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)