Police Spawn.
#5

pawn Код:
if(strcmp(cmdtext,"/policespawn",true) ==0 )
    {
        if(IsPlayerInRangeOfPoint(playerid,5,1573.9717,-1696.8590,6.2188))
        {
         if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) // assuming your LSPD Faction is id 1
        {
            ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST,"Vehicles","LSPD Cruiser\nSFPD Cruiser\nLVPD Cruiser\nRancher\nSWAT Tank\nEnforcer\nFBI Truck","Spawn","Exit");
            return 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "You are not a member of the LSPD.");
            return 1;
        }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "You are not at the vehicle spawn checkpoint.");
            return 1;
        }
    }
you mean something like that?

ps not testing just quickly written on my ipad so please test

pps. wrong section next time post for scripting help here:

http://forum.sa-mp.com/forumdisplay.php?f=12
Reply


Messages In This Thread
archive - by Fredx - 09.08.2013, 10:42
Re: Police Spawn. - by Fredx - 10.08.2013, 23:08
Re : Police Spawn. - by ZaakWest - 11.08.2013, 00:24
Re: Police Spawn. - by Fredx - 11.08.2013, 11:51
Re: Police Spawn. - by Donvalley - 11.08.2013, 13:30
Re: Re : Police Spawn. - by Donvalley - 11.08.2013, 13:38
Re: Police Spawn. - by Mitchy - 11.08.2013, 17:40
Re: Police Spawn. - by RedJohn - 11.08.2013, 21:24
Re: Police Spawn. - by Fredx - 13.08.2013, 11:48

Forum Jump:


Users browsing this thread: 3 Guest(s)