02.01.2018, 10:01
Not 100% tested but try this
USAGE:
EDITED: Please make sure to reload the page I have edited the code, there were a few mistake on my first post
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;
}
PHP код:
public OnPlayerSpawn(playerid)
{
PutInEmptyInfernus(playerid);
return 1;
}