Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Please use this at your descretion! -Tut by ShockeyHD
- //USe me in your credits!
- //Thanks!
- #include <a_samp>
- #include <float>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Police Car spawner by XphosKill3r");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (!strcmp(cmdtext,"/Carspawner",true))
- {
- ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,"Cars:",,"Police Cars:","PoliceCar-LS\nPoliceCar-LV\nPoliceCar-SF\nFBI_Rancher\nRanger\nWashington\n","Select","Cancel");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 12)
- {
- if(response == 1)
- {
- if(listitem == 0)
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
- CreateVehicle(411, x+3,y,z, a, -1, -1, -1);
- new vehicleid = GetPlayerVehicleID(playerid);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- if(listitem == 1)
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
- CreateVehicle(562, x+3,y,z, a, -1, -1, -1);
- new vehicleid = GetPlayerVehicleID(playerid);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- if(listitem == 2)
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
- CreateVehicle(400, x+3,y,z, a, -1, -1, -1);
- new vehicleid = GetPlayerVehicleID(playerid);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- if(listitem == 3)
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
- CreateVehicle(401, x+3,y,z, a, -1, -1, -1);
- new vehicleid = GetPlayerVehicleID(playerid);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- if(listitem == 4)
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
- CreateVehicle(402, x+3,y,z, a, -1, -1, -1);
- new vehicleid = GetPlayerVehicleID(playerid);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- if(listitem == 5)
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
- CreateVehicle(403, x+3,y,z, a, -1, -1, -1);
- new vehicleid = GetPlayerVehicleID(playerid);
- PutPlayerInVehicle(playerid, vehicleid, 0);
- if(listitem == 2)
- }
- }
- }
- }
- }
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment