Need help with stock and car restriction.
#7

Use this way.
pawn Код:
else if(IsFamVehicle(vehicleid) && Fam[vehicleid] != PlayerInfo[playerid][pFam] && !IsACop(vehicleid) && !IsADOC(vehicleid) && !IsASAAF(vehicleid) && !IsSASD(vehicleid))
        {
            new Float:pos[3];
            GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            SendClientMessage(playerid, COLOR_ORANGE, " You can't get in this car as it belongs to a family.");
        }
        else if(IsLeoVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 1)
        {
            new Float:pos[3];
            GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            SendClientMessage(playerid, COLOR_GREY, " You can't get in this car as it belongs to the LSPD.");
        }
        else if(IsLSFMDVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 5)
        {
            new Float:pos[3];
            GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            SendClientMessage(playerid, COLOR_GREY, " You can't get in this car as it belongs to the LSFMD.");
        }
Reply


Messages In This Thread
Need help with stock and car restriction. - by scout322 - 25.01.2015, 00:27
Re: Need help with stock and car restriction. - by scout322 - 25.01.2015, 01:02
Re: Need help with stock and car restriction. - by vassilis - 25.01.2015, 01:12
Re: Need help with stock and car restriction. - by scout322 - 25.01.2015, 01:27
Re: Need help with stock and car restriction. - by Schneider - 25.01.2015, 02:04
Re: Need help with stock and car restriction. - by scout322 - 25.01.2015, 08:41
Re: Need help with stock and car restriction. - by Rabea - 25.01.2015, 09:01
Re: Need help with stock and car restriction. - by scout322 - 25.01.2015, 09:07
Re: Need help with stock and car restriction. - by Rabea - 25.01.2015, 09:16
Re: Need help with stock and car restriction. - by Vince - 25.01.2015, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)