25.10.2012, 17:17
pawn Код:
//OnPlayerStateChange(playerid, newstate, oldstate)
if(newstate == PLAYER_STATE_DRIVER) // use definitions, its easier
{
new CarCheck = GetPlayerVehicleID(playerid);
if(CarCheck == Cars[TEAM_BALLAS])
{
if(GetPlayerTeam(playerid) != TEAM_BALLAS) // removed the return
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "You Don't have the keys for this car!");
}
}
Show us the code where you store the vehicleids in Cars

