11.08.2013, 13:30
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;
}
}
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