[FilterScript] Simple weapon spawner (with dialog, beginner friendly!)
#1

I browsed my computer files and found this fs which i maded somewhere last summer for 0.3a..this is so simple that even beginners can understand this: Weapon Spawner with dialog.

Command: /weapons

Latest Version: 1.1, Release 2 (Admins only use - version)
SA-MP Version: 0.3 Compatible (including newest 0.3c)
Credits: Bu$ter


Features:
- Dialog based weapon spawning.
- Guns in Weapon ID number order (Starting from 4-)
- Currently working for all users, can be easily changed for RCON admins only.
- Contains most used weapons in SA-MP.


How to install & use:

1) Download file and place it to your filterscripts folder
2) Compile .pwn file to .amx and write to your server.cfg behind filterscripts: weapons
3) Start your server and connect there.
(VERSION 1.1 ONLY:) Login in as RCON admin
4) Type /weapons and weapon list appears. Choose your weapon and press "spawn"

Screens



Terms of Use:
You are free to modify this script for your use, however leave credits to me.

When you open this file you see its quite simple: all of the things have been placed to one dialog. I think i'm releasing soon newer version about this since i have learned much about PAWN from last summer. New version will have Sub-Dialogs and some useful commands and something more..dunno about it yet..anyways enjoy this

Download:

Version 1.1:
http://up.servut.us/28222

Version 1.0:
http://up.servut.us/27648
http://www.megaupload.com/?d=F87SPL9J
http://www.filefront.com/17757001/
http://www.mediafire.com/?76fkbi008uun160

What's new in version 1.1?

In 1.1 version only rcon admins can use the command. There is nothing more new stuff.
Reply
#2

Nice release really good.
Reply
#3

Nice, useful.
Reply
#4

Good job.
Reply
#5

Simple but nice, good work man!
Reply
#6

Thanks all
Reply
#7

GOOD GOOD FS!

Whats i need do for only admins can use? THANKS!
Reply
#8

Nice FS!
Reply
#9

Cool
Reply
#10

Quote:
Originally Posted by murdoxix
Посмотреть сообщение
GOOD GOOD FS!

Whats i need do for only admins can use? THANKS!
only write in front of
the cmd:
if(isPlayerAdmin(playerid)){

and at the end:
}
Reply
#11

NOT GOOD, Reason:
1. When You buy a weapon, it's free(no cash).
2. Players will abuse this.
3. Why you put FORBIDDEN weapon? Rocket Launcher.. etc.
-1
Reply
#12

Nice !
Reply
#13

Watch returning values and learn programming!!!!

(all other dialogs after yourґs, wont work if you programming it like this !!!!! )

spent 2 hours to fix this little bullshit... hold the default guidelines !!!

Link : https://sampwiki.blast.hk/wiki/OnDialogResponse_DE
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)