11.04.2013, 12:24
Advanced Vehicle Spawn
#Info
This is based filescript spawn cars .. is a simpler version of the script I work without making more lines ...
#Install
Unzip veh.pwn and veh.amx
Go to server.cfg and put them in line with filescripts
#Photo
The script is here
I'm new to scripting, I learned since I accidentally forgot to other server ...
Sorry I was wrong section .. can move?
#Info
This is based filescript spawn cars .. is a simpler version of the script I work without making more lines ...
Код:
new vehid; vehid = strval(inputtext); if(vehid < 510 || vehid > 522)
Unzip veh.pwn and veh.amx
Go to server.cfg and put them in line with filescripts
#Photo
The script is here
Код:
#if defined Advanced ------------------------- Advanced Vehicle Spawn v3.2[beta] ------------------------ #endif #include <a_samp> #include <zcmd> #include <sscanf2> #pragma tabsize 0 //================ #define car 5000 #define car2 7544 #define car3 3224 #define car4 1123 #define car5 5443 //================ #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n++++++++++++++++++++++++"); print(" Advanced Vehicle Spawn Loaded"); print("++++++++++++++++++++++++++++++\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n++++++++++++++++++++++++"); print(" Advanced Vehicle Spawn Loaded"); print("++++++++++++++++++++++++++++++\n"); } #endif public OnPlayerConnect(playerid) { SendClientMessage(playerid, 0xFF0000FF, "{FFAF00}NOTE: {C3C3C3}Advanced Vehicle Spawn by G3n1uS use {F81414}/v"); return 1; } CMD:v(playerid,params[]) { ShowPlayerDialog(playerid,car,DIALOG_STYLE_LIST,"{FFFFFF}Vehicle {0049FF}List","{C3C3C3}Bike\n{C3C3C3}Work Car\n{C3C3C3}Sport Car","Ok","Cancel"); PlayerPlaySound(playerid,1085,0.0,0.0,0.0); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == car) if(response) { if(listitem == 0) { ShowPlayerDialog(playerid,car2,DIALOG_STYLE_INPUT,"Vehicle {0049FF}List #2","{C3C3C3}Nrg-{F81414}522\n{C3C3C3}FreeWay-{F81414}463\n{C3C3C3}Bmx-{F81414}481\n{C3C3C3}Mountage Bike-{F81414}510","Spawn","Cancel"); PlayerPlaySound(playerid,1085,0.0,0.0,0.0); } if(listitem == 1) { ShowPlayerDialog(playerid,car3,DIALOG_STYLE_INPUT,"Vehicle {0049FF}List #2","{C3C3C3}Police Bike-{F81414}523\n{C3C3C3}Firetruck-{F81414}544\n{C3C3C3}FBI Car-{F81414}599\n{C3C3C3}Police LS-{F81414}597\n{C3C3C3}Police Lv-{F81414}598","Spawn","Cancel"); PlayerPlaySound(playerid,1085,0.0,0.0,0.0); } if(listitem == 2) { ShowPlayerDialog(playerid,car4,DIALOG_STYLE_INPUT,"Vehicle {0049FF}List #2","{C3C3C3}Infernus-{F81414}411\n{C3C3C3}Jester-{F81414}559\n{C3C3C3}elegy-{F81414}562\n{C3C3C3}Buffalo-{F81414}402\n{C3C3C3}Cheetah-{F81414}415\n{C3C3C3}Banshee-{F81414}429\n{C3C3C3}Turismo-{F81414}451","Spawn","Cancel"); PlayerPlaySound(playerid,1085,0.0,0.0,0.0); } return 1; } if(dialogid == car2) { if(response) { new vehid; vehid = strval(inputtext); if(vehid < 510 || vehid > 522) { SendClientMessage(playerid, 0xFFFFFFFF, "{F3FF02}SERVER: {C3C3C3}Sorry but you must have some variability above id 510-522"); ShowPlayerDialog(playerid,car2,DIALOG_STYLE_INPUT,"Vehicle {0049FF}List #2","{C3C3C3}Nrg-{F81414}522\n{C3C3C3}FreeWay-{F81414}463\n{C3C3C3}Bmx-{F81414}481\n{C3C3C3}Mountage Bike-{F81414}510","Spawn","Cancel"); PlayerPlaySound(playerid,1085,0.0,0.0,0.0); } else { new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); PutPlayerInVehicle(playerid,CreateVehicle(vehid,X,Y,Z,0,-1,-1,-1),0); PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0); } } } if(dialogid == car3) { if(response) { new vehid; vehid = strval(inputtext); if(vehid < 523 || vehid > 598) { SendClientMessage(playerid, 0xFFFFFFFF, "{F3FF02}SERVER: {C3C3C3}Sorry but you must have some variability above id 523-598"); ShowPlayerDialog(playerid,car3,DIALOG_STYLE_INPUT,"Vehicle {0049FF}List #2","{C3C3C3}Police Bike-{F81414}523\n{C3C3C3}Firetruck-{F81414}544\n{C3C3C3}FBI Car-{F81414}599\n{C3C3C3}Police LS-{F81414}597\n{C3C3C3}Police Lv-{F81414}598","Spawn","Cancel"); PlayerPlaySound(playerid,1085,0.0,0.0,0.0); } else { new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); PutPlayerInVehicle(playerid,CreateVehicle(vehid,X,Y,Z,0,-1,-1,-1),0); PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0); } } } if(dialogid == car4) { if(response) { new vehid; vehid = strval(inputtext); if(vehid < 411 || vehid > 452) { SendClientMessage(playerid, 0xFFFFFFFF, "{F3FF02}SERVER: {C3C3C3}Sorry but you must have some variability above id 411-451"); ShowPlayerDialog(playerid,car4,DIALOG_STYLE_INPUT,"Vehicle {0049FF}List #2","{C3C3C3}Infernus-{F81414}411\n{C3C3C3}Jester-{F81414}559\n{C3C3C3}elegy-{F81414}562\n{C3C3C3}Buffalo-{F81414}402\n{C3C3C3}Cheetah-{F81414}415\n{C3C3C3}Banshee-{F81414}429\n{C3C3C3}Turismo-{F81414}451","Spawn","Cancel"); PlayerPlaySound(playerid,1085,0.0,0.0,0.0); } else { new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); PutPlayerInVehicle(playerid,CreateVehicle(vehid,X,Y,Z,0,-1,-1,-1),0); PlayerPlaySound(playerid, 1137, 0.0, 0.0, 0.0); } } } return 1; } /////////===============================END====================================
Sorry I was wrong section .. can move?