event participants - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: event participants (
/showthread.php?tid=448040)
event participants -
ScRipTeRi - 02.07.2013
hello,
when start event and player have join in event send message to all
participants: how much have join
Thnx
Re: event participants -
JimmyCh - 02.07.2013
Give us your codes?
Anyway, you can do like
PHP код:
SendClientMessage(playerid, COLOR_WHITE," %d have joined the event!", nEvent);
Something like that according to your script.
rep+ me if this helped
Re: event participants -
ScRipTeRi - 02.07.2013
not this
Re: event participants -
JimmyCh - 02.07.2013
Tell me what you mean...... And show us your code please
Re: event participants -
ScRipTeRi - 02.07.2013
when event start tell how much player have join in it
Re: event participants -
Goldilox - 02.07.2013
You have to show us the variable you give the to check the if player is in event.
This is an example of mine.
pawn Код:
// on event start
new count = 0;
new string[128];
new name1[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(InEvent[i] == 1)
{
GetPlayerName(i,name1,MAX_PLAYER_NAME);
}
}
format(string,sizeof(string), "%s", name1);
ShowPlayerDialog(playerid,10102,DIALOG_STYLE_MSGBOX,"Current Players",string,"Close","");
count++;
Re: event participants -
ScRipTeRi - 02.07.2013
its not tis what i want :/