[FilterScript] Vehicle/weapon spawner
#1

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
Reply
#2

Good!
Reply
#3

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!
Reply
#4

nice!
Reply
#5

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.
Reply
#6

Update:
Updated strtok to sscanf2
Reply
#7

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.
Reply
#8

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

pawn Код:
#define USE_ADMIN false
If you still get the Unknown Command, make sure you spelled it correct. If you did, did you change something?
Reply
#9

Or you forgot the sscanf plugin you didn't include in server.cfg
Reply
#10

Added the sscanf2 download link
Reply
#11

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?
Reply
#12

Quote:
Originally Posted by Gangsta_Hotdog
View Post
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
Reply
#13

Quote:
Originally Posted by Wesley221
View Post
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!
Reply
#14

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
Reply
#15

Good work wesley!
Reply
#16

AWESOME!!!!!!

I was looking for something like this since 3 days, finally found it.! Repped!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)