30.12.2007, 13:22
Martok's Fireworks
Inspired by http://forum.sa-mp.com/index.php?topic=35903.0
Download: http://www.martoks-place.de/files/samp/fireworks.zip
Based on Boylett's funny xFireworks Include, I created a filterscript which lets admins create firework batteries which can then be fired.
You need to be either RCON admin or authenticaded admin-scrpit-admin (see below) to access the commands!
Command help is available via /fwhelp.
Oh, and if you want to save... two things: first, it overwrites existing files... second: saving after a firework has been fired is useless 'cause the batteries are removed after they are empty. So you might save an empty map...
Admin script integration: I built the script to cooperate with mabakos admin script we use at the GermanFunserver. In OnPlayerCommandText, you will find the check for either RCON admin or Ingame-Admin. Our script allows to get a player's level via a CallRemoteFunction-Call. If you have another method, you can simply put it in this line. If not, ignore it, it will do no harm if there is no such function in your script.
Compiling yourself: If you want to compile this for yourself, you need the sscanf code which can be found on the wiki (NOTE: I had to fix a bug in there, so you might need to update your version if you already have one.).
Also, for some special effects, I modified xFireworks.inc so there are random white and red rockets.
The versions I compiled with are included in the zip archive.
Files: The script can save the current setup to a file located in the scriptfiles folder. 2 are shipped with the script: vinewood.firework creates a nice firework on the vinewood sign, firewall creates a wall of fireworks near the entrance of LS airfield. Don't you try to fly through with a helicopter
Have fun, we do have it
Suggestions are welcome, of course.
FAQ:
All of these have been answered in this thread, but as nobody seems to even try to search...
The download doesn't work
It does, just not now. The server doesn't have 100% uptime... none ever has.
Compile error on line 200
If you have this error:
Put a ";" on the end of the line 200. That's because I have used a newer version of the compiler than normally packaged.
Where should the files go?
Read the manual again...
Why does nothing happen when I type commands?
Define nothing: if it says "unknown command" and you are sure the script is loaded, then you are not logged in as RCON admin.
If there is really nothing happening at all, some other script is buggy.
Alternatively, somthing went wrong loading the script, try reloading.
Known problems
As BLACKMAMBA_007 pointed out: it's incompatible with the Bus_interior FS.
Still doesnt work...
Okay, if you are sure it is not a problem with your server and you have searched here if it may have been discussed before.. feel free to ask. This thread is full of ppl asking the exact same questions...
History:
2007-12-30: initial release
2009-11-23: added FAQ
NEW: demo video!
Watch it here!
Inspired by http://forum.sa-mp.com/index.php?topic=35903.0
Download: http://www.martoks-place.de/files/samp/fireworks.zip
Based on Boylett's funny xFireworks Include, I created a filterscript which lets admins create firework batteries which can then be fired.
You need to be either RCON admin or authenticaded admin-scrpit-admin (see below) to access the commands!
Command help is available via /fwhelp.
Oh, and if you want to save... two things: first, it overwrites existing files... second: saving after a firework has been fired is useless 'cause the batteries are removed after they are empty. So you might save an empty map...
Admin script integration: I built the script to cooperate with mabakos admin script we use at the GermanFunserver. In OnPlayerCommandText, you will find the check for either RCON admin or Ingame-Admin. Our script allows to get a player's level via a CallRemoteFunction-Call. If you have another method, you can simply put it in this line. If not, ignore it, it will do no harm if there is no such function in your script.
Compiling yourself: If you want to compile this for yourself, you need the sscanf code which can be found on the wiki (NOTE: I had to fix a bug in there, so you might need to update your version if you already have one.).
Also, for some special effects, I modified xFireworks.inc so there are random white and red rockets.
The versions I compiled with are included in the zip archive.
Files: The script can save the current setup to a file located in the scriptfiles folder. 2 are shipped with the script: vinewood.firework creates a nice firework on the vinewood sign, firewall creates a wall of fireworks near the entrance of LS airfield. Don't you try to fly through with a helicopter
Have fun, we do have it
Suggestions are welcome, of course.
FAQ:
All of these have been answered in this thread, but as nobody seems to even try to search...
The download doesn't work
It does, just not now. The server doesn't have 100% uptime... none ever has.
Compile error on line 200
If you have this error:
Код:
error 001: expected token: ";", but found "else"
Where should the files go?
Read the manual again...
Why does nothing happen when I type commands?
Define nothing: if it says "unknown command" and you are sure the script is loaded, then you are not logged in as RCON admin.
If there is really nothing happening at all, some other script is buggy.
Alternatively, somthing went wrong loading the script, try reloading.
Known problems
As BLACKMAMBA_007 pointed out: it's incompatible with the Bus_interior FS.
Still doesnt work...
Okay, if you are sure it is not a problem with your server and you have searched here if it may have been discussed before.. feel free to ask. This thread is full of ppl asking the exact same questions...
History:
2007-12-30: initial release
2009-11-23: added FAQ
NEW: demo video!
Watch it here!