Vehicle/weapon spawner -
Wesley221 - 03.08.2011
Introduction:
This is my first filterscript im releasing. I know it is still a little bit basic, but updates will come soon.
What is this filterscript, what does this filterscript do? This filterscript is just a simple filterscript that allows you to spawn a vehicle anywhere you like, and give yourself a weapon. There are no dialogs included, all done by a few commands.
Configuration:
If you open the .pwn file, you will see a couple defines. Read them carefully, and change them to your own needs.
pawn Код:
#define USE_ADMIN true // if true, you need to be admin to do this
#define PAY_CMD false // if true, you need to pay an amount of cash to use this command
#define USE_RMESSAGE true // if true, it automaticly sends messages to everyone
#define PAY 1000 // the amount you need to pay to use a command
#define MESSAGE1 "This server uses VehicleSpawner from Wesley221 (/spawnhelp)"
#define MESSAGE2 "/spawnhelp for all the commands of this filterscript! (/spawnhelp)"
#define MESSAGE3 "Spawning something only costs $%i! (/spawnhelp)"
#define MESSAGE4 "/(v/w) [vehicle/weaponname] to spawn a vehicle/weapon! No ID's needed! (/spawnhelp)"
#define MESSAGE5 "Out of ideas! Change this line to anything you like! (/spawnhelp)"
How to use:
Код:
/spawnhelp --> gives you some messages with all the commands there are
/v(eh)(icle) [vehiclename] --> spawns a vehicle by name (Example: /v infernus)
/w(eap)(on) [weaponname] --> gives yourself a weapon by name (Example: /w minigun)
/vnames --> gives you a link that shows you all the vehicle names
/wnames --> gives you a link that shows you all the weapon names
Changelog:
Код:
- V1 released (3-8-2011)
- V2 Updated strtok to Sscanf2 (13-8-2011)
- V2.2 Some bug fixes, now you can choose the amount of ammo aswell! (22-8-2011)
Download:
NOTE: The only things you need for this filterscript are the a_samp include, zcmd include, and sscanf2 plugin/include.
Zcmd by Zeex
Sscanf2 by ******
Pastebin
BIG NOTE: Only the pastebin link is updated!! Do not use solidfiles for now
SolidFiles .pwn
SolidFiles .amx
Re: Vehicle/weapon spawner -
igor_andrusenko - 03.08.2011
Good!
Re: Vehicle/weapon spawner -
Malakay - 03.08.2011
I have added this FS to my server, and that don't work.
Well I'm an noob scripter. Can you tell all the steps to configure that?
Thanks!
And GJ!
Respuesta: Vehicle/weapon spawner -
D3IMON - 03.08.2011
nice!
Re: Vehicle/weapon spawner -
Wesley221 - 03.08.2011
Quote:
Originally Posted by Malakay
I have added this FS to my server, and that don't work.
Well I'm an noob scripter. Can you tell all the steps to configure that?
Thanks!
And GJ!
|
Go to your server.cfg file. Type "VehicleSpawner" in the filterscript line, just after your other filterscripts (if you have them). Go ingame, and try a command. Also, dont forget to compile the .pwn file if you downloaded that one.
Re: Vehicle/weapon spawner -
Wesley221 - 13.08.2011
Update:
Updated strtok to sscanf2
Re: Vehicle/weapon spawner -
Gangsta_Hotdog - 21.08.2011
Quote:
Originally Posted by Wesley221
Introduction:
This is my first filterscript im releasing. I know it is still a little bit basic, but updates will come soon.
What is this filterscript, what does this filterscript do? This filterscript is just a simple filterscript that allows you to spawn a vehicle anywhere you like, and give yourself a weapon. There are no dialogs included, all done by a few commands.
Configuration:
If you open the .pwn file, you will see a couple defines. Read them carefully, and change them to your own needs.
pawn Код:
#define USE_ADMIN true // if true, you need to be admin to do this #define PAY_CMD false // if true, you need to pay an amount of cash to use this command #define USE_RMESSAGE true // if true, it automaticly sends messages to everyone #define PAY 1000 // the amount you need to pay to use a command #define MESSAGE1 "This server uses VehicleSpawner from Wesley221 (/spawnhelp)" #define MESSAGE2 "/spawnhelp for all the commands of this filterscript! (/spawnhelp)" #define MESSAGE3 "Spawning something only costs $%i! (/spawnhelp)" #define MESSAGE4 "/(v/w) [vehicle/weaponname] to spawn a vehicle/weapon! No ID's needed! (/spawnhelp)" #define MESSAGE5 "Out of ideas! Change this line to anything you like! (/spawnhelp)"
How to use:
Код:
/spawnhelp --> gives you some messages with all the commands there are
/v(eh)(icle) [vehiclename] --> spawns a vehicle by name (Example: /v infernus)
/w(eap)(on) [weaponname] --> gives yourself a weapon by name (Example: /w minigun)
/vnames --> gives you a link that shows you all the vehicle names
/wnames --> gives you a link that shows you all the weapon names
Changelog:
Код:
- V1 released (3-8-2011)
- V2 Updated strtok to Sscanf2 (13-8-2011
Download:
NOTE: The only things you need for this filterscript are the a_samp include, zcmd include, and sscanf2 plugin/include.
Zcmd by Zeex
Pastebin
SolidFiles .pwn
SolidFiles .amx
|
I've installed this on the latest SA:MP and it doesn't work. I tried /w minigun while logged in as an Admin and it said Unknown Command. I also tried /v rover and it said Unknown Command. Please help?
EDIT: Nevermind, I forgot to install those other thingies.
Re: Vehicle/weapon spawner -
Pinguinn - 21.08.2011
Quote:
Originally Posted by Gangsta_Hotdog
I've installed this on the latest SA:MP and it doesn't work. I tried /w minigun while logged in as an Admin and it said Unknown Command. I also tried /v rover and it said Unknown Command. Please help?
EDIT: Nevermind, I forgot to install those other thingies.
|
Try this on the top
If you still get the Unknown Command, make sure you spelled it correct. If you did, did you change something?
Re : Vehicle/weapon spawner -
Naruto_Emilio - 21.08.2011
Or you forgot the sscanf plugin you didn't include in server.cfg
Re: Vehicle/weapon spawner -
Wesley221 - 21.08.2011
Added the sscanf2 download link
Re: Vehicle/weapon spawner -
Gangsta_Hotdog - 21.08.2011
Yeah sorry, I forgot to install those other things that were listed. I got it working but I have a few issues. I tried spawning grenades and Purple dildos but they never come up in my items? Everything else works fine. Oh one more thing actually, how do you use the remote control vehicles?
Re: Vehicle/weapon spawner -
Wesley221 - 21.08.2011
Quote:
Originally Posted by Gangsta_Hotdog
Yeah sorry, I forgot to install those other things that were listed. I got it working but I have a few issues. I tried spawning grenades and Purple dildos but they never come up in my items? Everything else works fine. Oh one more thing actually, how do you use the remote control vehicles?
|
Ah, i got the same problem with the grenades/purple dildos. let me fix that, and imma update the topic if its fixed
Re: Vehicle/weapon spawner -
Gangsta_Hotdog - 21.08.2011
Quote:
Originally Posted by Wesley221
Ah, i got the same problem with the grenades/purple dildos. let me fix that, and imma update the topic if its fixed
|
Ok, thanks!
Re: Vehicle/weapon spawner -
Wesley221 - 22.08.2011
FS updated to v2.2!
Changelog:
You can now spawn grenades & purple dildos
You can choose the amount of ammo you want (/w(eap)(on) [weaponname] [ammo (optional & by default 500)])
You now get the message which weapon you bought, the amount of ammo, etc
Next update might be:
Pay a price for EACH bullet
Spawn a vehicle + the car colours
Re: Vehicle/weapon spawner -
Davz*|*Criss - 05.09.2011
Good work wesley!
Re: Vehicle/weapon spawner -
deffo - 25.04.2012
AWESOME!!!!!!
I was looking for something like this since 3 days, finally found it.! Repped!