12.05.2013, 11:46
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!");
}
}
}