11.06.2012, 22:24
ele nгo esta removendo porque essa public й chamada assim q o player abre a porta do carro, entгo ele й removido antes mesmo de estar dentro do carro
tente assim:
tente assim:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) >= GroveCars[0] && GetPlayerVehicleID(playerid) <= GroveCars[2])
{
if(gTeam[playerid] == Grove)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "Vo");
}
}
}
return 1;
}