18.01.2015, 22:45
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new playerskin = GetPlayerSkin(playerid);
new vehid = GetVehicleModel(GetPlayerVehicleID(playerid);
if(playerskin != 287)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_ENTER_VEHICLE_DRIVER)
{
if(vehid == 425) || vehid == 432)
{
ClearAnimations(playerid);
SendClientMessage(playerid, -1 ,"You require to be a part of the army in order to enter this Hunter.");
}
else if(vehid == 432)
{
ClearAnimations(playerid);
SendClientMessage(playerid, -1 ,"You require to be a part of the army in order to enter this Rhino.");
}
}
}
return 1;
}