28.03.2013, 01:47
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new carro = GetPlayerVehicleID(playerid);
for(new i = 0; i < sizeof(CarroA); i ++)
if(carro == CarroA[i])
if(Gang[playerid] != aztecas)
RemovePlayerFromVehicle(playerid);
for(new i = 0; i < sizeof(CarroG); i ++)
if(carro == CarroG[i])
if(Gang[playerid] != grove)
RemovePlayerFromVehicle(playerid);
for(new i = 0; i < sizeof(CarroV); i ++)
if(carro == CarroV[i])
if(Gang[playerid] != vagos)
RemovePlayerFromVehicle(playerid);
for(new i = 0; i < sizeof(CarroB); i ++)
if(carro == CarroB[i])
if(Gang[playerid] != ballas)
RemovePlayerFromVehicle(playerid);
} //Only one flower bracket is needed
return 1;
}