SAPD vehicles problem.
#2

You must get the player's state and see if the player is in driver state so that it will work for the driver only.
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if( GetVehicleModel(GetPlayerVehicleID( playerid )) == 596 )
    {
        if(PlayerInfo[playerid][pMember] != 1)
        {
            ClearAnimations(playerid);
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, COLOR_RED, "You are not in the BCPD!");
        }
    }
    if( GetVehicleModel(GetPlayerVehicleID( playerid )) == 523 )
    {
        if(PlayerInfo[playerid][pMember] != 1)
        {
            ClearAnimations(playerid);
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, COLOR_RED, "You are not in the BCPD!");
        }
    }
}
Reply


Messages In This Thread
SAPD vehicles problem. - by lQs - 12.05.2013, 11:34
Re: SAPD vehicles problem. - by Lordzy - 12.05.2013, 11:46
Re : SAPD vehicles problem. - by yusei - 12.05.2013, 11:48
Re: SAPD vehicles problem. - by lQs - 12.05.2013, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)