Police Spawn.
#7

Well, firstly you need to define the actual team, which you can do if you're actually the scripter there, then all you do is:

pawn Код:
if(strcmp(cmd, "/policespawn", true) == 0)
 {
    if(IsPlayerInRangeOfPoint(playerid, 5,1573.9717,-1696.8590,6.2188))
    {
        if(playerInfo[playerid][pTeam] == 1) // assign the value to your desired team
        {
            ShowPlayerDialog(playerid, 8437, DIALOG_STYLE_LIST, "LSPD Vehicles", "LVPD\nLSPD\nSFPD\nMaverick\nRanger\nFBI", "Choose", "Exit");
        }
        else return SendClientMessage(playerid, -1, "You are not in the LSPD!");
    }
 }
 
 // put this somewhere in OnDialogResponse
 
 if(dialogid == 8437)
 {
    if(!reponse) return SendClientMessage(playerid, -1, "You cancelled selection."); // if he pressed escape/exit
    if(response) // if he clicked get car
    {
        // in here you add the code for spawning the vehicle, make sure it's about 5 away from them so they dont get stuck!
    }
 }
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: 1 Guest(s)