10.10.2011, 23:10
pawn Код:
if(arrayPlayer[playerid][Pinderby] == 1)
{// ... ^ checando se estб no derby.
if(newstate == PLAYER_STATE_ONFOOT || newstate == PLAYER_STATE_WASTED || newstate == PLAYER_STATE_EXIT_VEHICLE || newstate == PLAYER_STATE_SPAWNED)
{// ... ^ checando estado.
new vehicleid = GetPlayerVehicleID(playerid);
for(new z = 0; z < MAX_PLAYERS; ++z)
{// ... /\ nгo entendi \/ ... (Nгo seria MAX_VEHICLES?)
if(vehicleid == derbycar[z])
{
new string[128];
format(string, sizeof(string), "'%s'(%d) foi desclassificado do Derby .", pNome(z),z);// Deve ser playerid!
SendClientMessageToAll(0xe045ffff,string);
arrayPlayer[z][Pinderby] = 0;// Deve ser playerid!
randomSpawn(z);// Deve ser playerid!
RemovePlayerFromDerby(z);// Deve ser playerid!
}
}
}
}