[Solved]Removing player from a specific vehicle.
#4

Quote:
Originally Posted by xClumx``
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 425 || 520 || 432)
        {
            if(DMZone[playerid] == 0)
            {
               //Do nothing
            }
            else
            {
              SendClientMessage(playerid,RED,"Go to a DM to use this car.");
              RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
Try that.
Same result :S

Quote:
Originally Posted by Andom
Lol, change:
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 425 || 520 || 432))
To:
pawn Код:
new vehiclemod = GetVehicleModel(GetPlayerVehicleID(playerid));
if(vehiclemod == 425 || vehiclemod == 520 || vehiclemod == 432))
All you did is add a variable?..It's the same thing, and you still did it wrong, It supposed to be, if(vehiclemod == 425 || 520 || 432)

Anyway, anyone know the problem?
Reply


Messages In This Thread
[Solved]Removing player from a specific vehicle. - by ReV. - 26.04.2009, 14:41
Re: Removing player from a specific vehicle. - by MachineHead - 26.04.2009, 14:43
Re: Removing player from a specific vehicle. - by Andom - 26.04.2009, 14:47
Re: Removing player from a specific vehicle. - by ReV. - 26.04.2009, 14:58
Re: Removing player from a specific vehicle. - by Finn - 26.04.2009, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)