26.06.2013, 20:39
Hi, i have a problem, i want to make when player join the event to put him in one of two cars, i put IsPlayerInVehicle to check is the first car avalible or not, if not...i wont to put that player in avalible car...and i made that but when player join the event, nothing happens...tnx
Код:
public Event(playerid)
{
if(Event_Players >= RACE_PLAYERS)
{
foreach(Player, i)
{
if(ON_Event[i] == 1)
{
SCM(i, COLOR_WHITE, "EVENT POKRENUT (10 sekundi)");
SetTimerEx("EventStart", 10000, false, "i", i);
if(IsPlayerInVehicle(i, INFERNUS1))
{
PutPlayerInVehicle(i, INFERNUS1, 0);
}
else if(IsPlayerInVehicle(i, INFERNUS2))
{
PutPlayerInVehicle(i, INFERNUS2, 0);
}
}
}
}
}


