01.07.2013, 13:45
Hello. i make a new fs but I have a problem. I want the event to be canceled only 1 person joined. but I couldn't already. understand my problem now;
OnPlayerUpdate public;
Please help i want is player joined the event but the event joined user = 1 the event is automatic finished. Sorry my bad english.
OnPlayerUpdate public;
Код:
if(EventAttend == 1 && EventStarted == 1 && GetPVarInt(playerid,"PlayerinEvent") == 1)
{
new string[256];
new name[30];
GetPlayerName(playerid,name,30);
format(string,sizeof(string),"%s won the event prcie: $5.000",name);
SendClientMessageToAll(-1,string);
EventStarted= 0;
EventAttend = 0;
GivePlayerMoney(playerid,50000);
SpawnPlayer(playerid);
EventisFinished = 0;
KillTimer(timer);
}


