03.01.2018, 17:32
Any help? no errors / warrings
The problem is when players Spawned all Driver in 1Car idk why!! HELP ME
PHP код:
stock PutInEmptyInfernus(playerid)
{
for(new i; i < sizeof(Infernus); i++)
{
for(new a, j = GetPlayerPoolSize(); a <= j; a++)
{
if(IsPlayerInVehicle(a, Infernus[i]) && GetPlayerState(a) == PLAYER_STATE_DRIVER)
continue;
PutPlayerInVehicle(playerid, Infernus[i], 0);
break;
}
}
return 1;
}
Код:
public OnPlayerSpawn(playerid) { PutInEmptyInfernus(playerid);