<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[SA-MP Forums Archive - Filterscripts]]></title>
		<link>https://sampforum.blast.hk/</link>
		<description><![CDATA[SA-MP Forums Archive - https://sampforum.blast.hk]]></description>
		<pubDate>Sun, 17 May 2026 18:51:54 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[[FilterScript] Roleplay Compilation]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=678350</link>
			<pubDate>Sun, 23 Aug 2020 05:54:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=76540">Nexotronix</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=678350</guid>
			<description><![CDATA[Hello guys! <br />
<br />
I want to release some functions but i cant to decide to do it!<br />
<br />
<br />
All work you can check here:<br />
<a href="https://www.youtube.com/playlist?list=PLailJRTFYtWc0xqperR9DUSpT5WkleFt6" target="_blank">https://www.youtube.com/playlist?lis...9DUSpT5WkleFt6</a><br />
<br />
Features list:<br />
<br />
-Serverside Los Santos Map<br />
-Texdraw Notifications<br />
-Garbage Collector Job<br />
-Mechanic Job<br />
-Clothing Store System<br />
-Unique taxi system<br />
-Brand new 24/7 system<br />
- A lot of unique mapping features<br />
and more...<br />
<br />
So if this poll will gain 200 answers i'll release it.<br />
But if  want to make yor server unique just PM me;]]></description>
			<content:encoded><![CDATA[Hello guys! <br />
<br />
I want to release some functions but i cant to decide to do it!<br />
<br />
<br />
All work you can check here:<br />
<a href="https://www.youtube.com/playlist?list=PLailJRTFYtWc0xqperR9DUSpT5WkleFt6" target="_blank">https://www.youtube.com/playlist?lis...9DUSpT5WkleFt6</a><br />
<br />
Features list:<br />
<br />
-Serverside Los Santos Map<br />
-Texdraw Notifications<br />
-Garbage Collector Job<br />
-Mechanic Job<br />
-Clothing Store System<br />
-Unique taxi system<br />
-Brand new 24/7 system<br />
- A lot of unique mapping features<br />
and more...<br />
<br />
So if this poll will gain 200 answers i'll release it.<br />
But if  want to make yor server unique just PM me;]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] IsPlayerUsingAndroid]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=678280</link>
			<pubDate>Thu, 20 Aug 2020 05:27:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=266967">Fairuz</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=678280</guid>
			<description><![CDATA[I've been seeing a massive new players from android and I wanted to share how to detect android users, this might not work for clients that respond to the check, please test it.<br />
Also for mods, if you want me to remove it, I'll be glad to, I don't want to break any forum rules.<br />
<br />
<a href="https://github.com/Fairuz-Afdhal/IsPlayerUsingAndroid" target="_blank">https://github.com/Fairuz-Afdhal/IsPlayerUsingAndroid</a><br />
<br />
I only used it once while I wanted to make my own server working with android but I'm running out of motivation to develop them as they're not really stable.<br />
Note that this doesn't work if you put it in your gamemode, please check <a href="https://github.com/Zeex/sampgdk/issues/189" target="_blank">this out!</a><br />
<br />
I'm open to contribution, please make a pull request.]]></description>
			<content:encoded><![CDATA[I've been seeing a massive new players from android and I wanted to share how to detect android users, this might not work for clients that respond to the check, please test it.<br />
Also for mods, if you want me to remove it, I'll be glad to, I don't want to break any forum rules.<br />
<br />
<a href="https://github.com/Fairuz-Afdhal/IsPlayerUsingAndroid" target="_blank">https://github.com/Fairuz-Afdhal/IsPlayerUsingAndroid</a><br />
<br />
I only used it once while I wanted to make my own server working with android but I'm running out of motivation to develop them as they're not really stable.<br />
Note that this doesn't work if you put it in your gamemode, please check <a href="https://github.com/Zeex/sampgdk/issues/189" target="_blank">this out!</a><br />
<br />
I'm open to contribution, please make a pull request.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] Horse System (Beta 0.7 Version)]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=677383</link>
			<pubDate>Sun, 12 Jul 2020 15:02:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=314971">JohnStark</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=677383</guid>
			<description><![CDATA[<b>Hello my friends,I decided to implement the idea with the horse system and give it to you.</b><br />
<b>I was helped by one person named John Doe. If not for him, then the system would have looked different.</b><br />
<b>Immediately I say the system is not finalized to the end. But will be updated. If you can help.</b><br />
<b>Together we are strength and together we can finish it to the end.</b><br />
<b>Это не похоже на FilerScript, но что-то подобное нужно только вставить в мод.</b><br />
<b>I know many will start copying the system and exhibiting it everywhere and exhibiting their copyrights, but please rate our work and expose our names if you will embed in other forums.</b><br />
<b><i>Now let's start with the system.</i></b><br />
<br />
<b><i><u>The system is used with ordinary functions.[BETA v0.7]</u></i></b><br />
<br />
<b><i><u>To begin with, when you put in a mod, you will need:</u></i></b><br />
<b><i><u>1) Go to the server.</u></i></b><br />
<b><i><u>2) To write command /horse </u></i></b><br />
<b><i><u>3) The horse controls "ALT, Space, Shift"</u></i></b><br />
<br />
<b><i><u>SHIFT = Left</u></i></b><br />
<b><i><u>ALT = Right</u></i></b><br />
<b><i><u>Space = Sprint</u></i></b><br />
<br />
<b>I came back again and decided to finish my script for those who wanted to open a project from the wild west, survival, role play, or at least with horses<br />
<font color="Red">Coming Soon v1.5 (Alpha)</font></b><br />
<br />
<b><i><u>PASTEBIN:</u></i></b> <b><i><u><a href="https://pastebin.com/0sUK7FXJ" target="_blank">https://pastebin.com/0sUK7FXJ</a></u></i></b><br />
<b><i><u>Screen:</u></i></b> <u><b><i><u><a href="https://imgur.com/a/1iAt7pH" target="_blank">https://imgur.com/a/1iAt7pH</a></u></i></b></u><br />
<br />
<font color="Black"><b>Author:</b></font><br />
<font color="red"><u><b><i>John Stark = Ideas, Attachment, Animation, Scripting, keystroke functions.</i></b></u></font><br />
<br />
<b><font color="Red">Updates and fixes coming soon:</font><br />
1.Fixed movement<br />
2.You can sit down (by pressing F)<br />
3.You can exit (By pressing F)<br />
4. You can feed, give water<br />
5. You can call to yourself (if you are close or far).<br />
6. Moves behind the player<br />
7. There are now many types of them and each has its own speed and color, while also its own race.<br />
8.Now has an amount of life (By standard it will be possible to remove)<br />
9.Added carriages (maximum 1 player can sit) and two horses in which maximum 2 players can sit. (Since 1 player = low speed and if 2 players then fast speed)<br />
10.Can be moved by water.<br />
11.Adapted to the inventory.<br />
12. It makes sounds when driving, when you call, when you feed, give out water, and so on.<br />
13. Fixed problems with camera rotation.<br />
14. Completely redesigned system and code.<br />
<br />
<font color="red">I'll update the document soon if there is a big asset here.</font></b><br />
<br />
<br />
<b><i><u>PS The theme will be updated including the system itself.</u></i></b><br />
<b><i><u>If you want to help, write in the comments functions and so on and I will put them.</u></i></b><br />
<b><i><u>Together we are strong.</u></i></b><br />
<b><i>My YouTube Chanel: <a href="https://youtube.com/c/ToGoRo" target="_blank">https://youtube.com/c/ToGoRo</a></i></b>]]></description>
			<content:encoded><![CDATA[<b>Hello my friends,I decided to implement the idea with the horse system and give it to you.</b><br />
<b>I was helped by one person named John Doe. If not for him, then the system would have looked different.</b><br />
<b>Immediately I say the system is not finalized to the end. But will be updated. If you can help.</b><br />
<b>Together we are strength and together we can finish it to the end.</b><br />
<b>Это не похоже на FilerScript, но что-то подобное нужно только вставить в мод.</b><br />
<b>I know many will start copying the system and exhibiting it everywhere and exhibiting their copyrights, but please rate our work and expose our names if you will embed in other forums.</b><br />
<b><i>Now let's start with the system.</i></b><br />
<br />
<b><i><u>The system is used with ordinary functions.[BETA v0.7]</u></i></b><br />
<br />
<b><i><u>To begin with, when you put in a mod, you will need:</u></i></b><br />
<b><i><u>1) Go to the server.</u></i></b><br />
<b><i><u>2) To write command /horse </u></i></b><br />
<b><i><u>3) The horse controls "ALT, Space, Shift"</u></i></b><br />
<br />
<b><i><u>SHIFT = Left</u></i></b><br />
<b><i><u>ALT = Right</u></i></b><br />
<b><i><u>Space = Sprint</u></i></b><br />
<br />
<b>I came back again and decided to finish my script for those who wanted to open a project from the wild west, survival, role play, or at least with horses<br />
<font color="Red">Coming Soon v1.5 (Alpha)</font></b><br />
<br />
<b><i><u>PASTEBIN:</u></i></b> <b><i><u><a href="https://pastebin.com/0sUK7FXJ" target="_blank">https://pastebin.com/0sUK7FXJ</a></u></i></b><br />
<b><i><u>Screen:</u></i></b> <u><b><i><u><a href="https://imgur.com/a/1iAt7pH" target="_blank">https://imgur.com/a/1iAt7pH</a></u></i></b></u><br />
<br />
<font color="Black"><b>Author:</b></font><br />
<font color="red"><u><b><i>John Stark = Ideas, Attachment, Animation, Scripting, keystroke functions.</i></b></u></font><br />
<br />
<b><font color="Red">Updates and fixes coming soon:</font><br />
1.Fixed movement<br />
2.You can sit down (by pressing F)<br />
3.You can exit (By pressing F)<br />
4. You can feed, give water<br />
5. You can call to yourself (if you are close or far).<br />
6. Moves behind the player<br />
7. There are now many types of them and each has its own speed and color, while also its own race.<br />
8.Now has an amount of life (By standard it will be possible to remove)<br />
9.Added carriages (maximum 1 player can sit) and two horses in which maximum 2 players can sit. (Since 1 player = low speed and if 2 players then fast speed)<br />
10.Can be moved by water.<br />
11.Adapted to the inventory.<br />
12. It makes sounds when driving, when you call, when you feed, give out water, and so on.<br />
13. Fixed problems with camera rotation.<br />
14. Completely redesigned system and code.<br />
<br />
<font color="red">I'll update the document soon if there is a big asset here.</font></b><br />
<br />
<br />
<b><i><u>PS The theme will be updated including the system itself.</u></i></b><br />
<b><i><u>If you want to help, write in the comments functions and so on and I will put them.</u></i></b><br />
<b><i><u>Together we are strong.</u></i></b><br />
<b><i>My YouTube Chanel: <a href="https://youtube.com/c/ToGoRo" target="_blank">https://youtube.com/c/ToGoRo</a></i></b>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] Slovakia boss 2020 Auction system by Janik22]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=677108</link>
			<pubDate>Tue, 30 Jun 2020 10:03:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=351004">janik22</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=677108</guid>
			<description><![CDATA[Hi guys today me create auction system v 1.0 thanks for watching<br />
<br />
Download:<a href="https://pastebin.com/SZ5wmRZ0" target="_blank">https://pastebin.com/SZ5wmRZ0</a><br />
<br />
Thanks for downloading <br />
<br />
Please dont remove credits<br />
//Sry my bad english]]></description>
			<content:encoded><![CDATA[Hi guys today me create auction system v 1.0 thanks for watching<br />
<br />
Download:<a href="https://pastebin.com/SZ5wmRZ0" target="_blank">https://pastebin.com/SZ5wmRZ0</a><br />
<br />
Thanks for downloading <br />
<br />
Please dont remove credits<br />
//Sry my bad english]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] ColorNameSystem]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=675867</link>
			<pubDate>Sat, 23 May 2020 12:42:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=342356">MmDSava</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=675867</guid>
			<description><![CDATA[Hi Guys! <img alt="" border="0" class="inlineimg" src="images/smilies/smile.png" title="Smiley"/><br />
<br />
Color name system<br />
<br />
<br />
I hope you like it<img alt="" border="0" class="inlineimg" src="images/smilies/surprised.gif" title="Shocked"/><br />
<br />
<br />
PasteBin: <a href="https://pastebin.com/kxY1rxp7" target="_blank">https://pastebin.com/kxY1rxp7</a><br />
<br />
<br />
Write your comments <img alt="" border="0" class="inlineimg" src="images/smilies/smile.png" title="Smiley"/>]]></description>
			<content:encoded><![CDATA[Hi Guys! <img alt="" border="0" class="inlineimg" src="images/smilies/smile.png" title="Smiley"/><br />
<br />
Color name system<br />
<br />
<br />
I hope you like it<img alt="" border="0" class="inlineimg" src="images/smilies/surprised.gif" title="Shocked"/><br />
<br />
<br />
PasteBin: <a href="https://pastebin.com/kxY1rxp7" target="_blank">https://pastebin.com/kxY1rxp7</a><br />
<br />
<br />
Write your comments <img alt="" border="0" class="inlineimg" src="images/smilies/smile.png" title="Smiley"/>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] GPS System with Arrows on road.]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=675465</link>
			<pubDate>Wed, 13 May 2020 10:15:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=274629">Shaheen</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=675465</guid>
			<description><![CDATA[Cheers Mates,<br />
<br />
Thank God....<br />
Today i am here with something a system i searched for very long on forums, but unfortunately i could not find it.<br />
so i have scripted it and it was 95% what i have planned. rest 5% it has some drawbacks and will be discussed here..<br />
<br />
<br />
<b><div align="center"><font size="5">Introduction</font></div></b><br />
<br />
<div align="center">Well , This System is now currently being used by a famous CnR Server and it has been very popular and many have requested this type of Gps System. i had made/scripted this for my server, so if any bugs has been found i will be fixing it.</div>
<br />
<b><div align="center"><font size="5">About the Gps System</font></div></b><br />
<br />
<div align="center">Its designed currently with cordinate command. you can enter a cordinate by using command /findpath (x,y,z) and the arrows will appear on roads and you will have to just follow it and it will till there you reached your destination node. this System required Modern Gps Plugin. the system also detects if there is a route change. its also easy to just add new cordinates to it.</div>
<br />
<b><div align="center"><font size="4">Video</font></div></b><br />
<br />
<a href="https://youtu.be/_m0y48N-8CM" target="_blank">https://youtu.be/_m0y48N-8CM</a><br />
<br />
<b><div align="center"><font size="5">Files Required</font></div></b><br />
<br />
The File : <a href="https://pastebin.com/31LPuxYM" target="_blank">https://pastebin.com/31LPuxYM</a><br />
Modern Gps Plugin : <a href="https://github.com/kristoisberg/samp-gps-plugin" target="_blank">https://github.com/kristoisberg/samp-gps-plugin</a><br />
IZCMD or ZCMD<br />
<br />
<br />
Credits : <br />
The entire Samp Team<br />
Kristoisberg for his gps plugin<br />
The Server scripters from whom i have adopted this idea.<br />
Zeex for Zcmd.<br />
<br />
<b><font size="3">No Bugs Has been Found. please reply if any...</font></b><br />
<br />
<b><div align="center"><font size="4">Drawbacks</font></div></b><br />
<br />
*If its a Bridge or flyover. the gps systems keeps changing the routes.<br />
<br />
<b><font size="3">Off TOpic</font></b><br />
<br />
* i am still a learner in scripting. so if i can improve my code in a better way please let me know. i will take it as a compliment and i will correct it in future..<br />
<br />
Mirrors are allowed.....]]></description>
			<content:encoded><![CDATA[Cheers Mates,<br />
<br />
Thank God....<br />
Today i am here with something a system i searched for very long on forums, but unfortunately i could not find it.<br />
so i have scripted it and it was 95% what i have planned. rest 5% it has some drawbacks and will be discussed here..<br />
<br />
<br />
<b><div align="center"><font size="5">Introduction</font></div></b><br />
<br />
<div align="center">Well , This System is now currently being used by a famous CnR Server and it has been very popular and many have requested this type of Gps System. i had made/scripted this for my server, so if any bugs has been found i will be fixing it.</div>
<br />
<b><div align="center"><font size="5">About the Gps System</font></div></b><br />
<br />
<div align="center">Its designed currently with cordinate command. you can enter a cordinate by using command /findpath (x,y,z) and the arrows will appear on roads and you will have to just follow it and it will till there you reached your destination node. this System required Modern Gps Plugin. the system also detects if there is a route change. its also easy to just add new cordinates to it.</div>
<br />
<b><div align="center"><font size="4">Video</font></div></b><br />
<br />
<a href="https://youtu.be/_m0y48N-8CM" target="_blank">https://youtu.be/_m0y48N-8CM</a><br />
<br />
<b><div align="center"><font size="5">Files Required</font></div></b><br />
<br />
The File : <a href="https://pastebin.com/31LPuxYM" target="_blank">https://pastebin.com/31LPuxYM</a><br />
Modern Gps Plugin : <a href="https://github.com/kristoisberg/samp-gps-plugin" target="_blank">https://github.com/kristoisberg/samp-gps-plugin</a><br />
IZCMD or ZCMD<br />
<br />
<br />
Credits : <br />
The entire Samp Team<br />
Kristoisberg for his gps plugin<br />
The Server scripters from whom i have adopted this idea.<br />
Zeex for Zcmd.<br />
<br />
<b><font size="3">No Bugs Has been Found. please reply if any...</font></b><br />
<br />
<b><div align="center"><font size="4">Drawbacks</font></div></b><br />
<br />
*If its a Bridge or flyover. the gps systems keeps changing the routes.<br />
<br />
<b><font size="3">Off TOpic</font></b><br />
<br />
* i am still a learner in scripting. so if i can improve my code in a better way please let me know. i will take it as a compliment and i will correct it in future..<br />
<br />
Mirrors are allowed.....]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] Unique Trashmaster/ANY Mission System.]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=674643</link>
			<pubDate>Fri, 24 Apr 2020 09:17:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=274629">Shaheen</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=674643</guid>
			<description><![CDATA[<b><font size="5"><div align="center">Mission System - Trashmaster</div></font></b><br />
Cheers Friends,<br />
I have not released anything useful for others. so i decided i can release this System now so others can use it. <br />
<br />
<br />
<br />
<font size="4"><div align="center"><b>Details</b></div></font><br />
This Filterscript Script is basically the idea adopted from one of the best <b>CNR Gamemode</b>(Present). this has got some features that you can use in your server.<br />
<br />
<div align="center"><b><font size="4">Working</font></b></div>
<b>#define MAX_MISSIONLOCATIONS 13 <br />
#define MAX_LOC_NUM 4<br />
#define MISSION_VEHICLE 408</b><br />
<br />
so i am going to explain with the help of above defines in the script....<br />
<br />
1- Enter a Mission Vehicle and type /mission. [The Mission Vehicle is currently a trashmaster]<br />
2- After typing /mission, the server chooses four random locations [MAX_LOC_NUM = 4 (can be changed)]<br />
3- It arranges according to ids of the checkpoints on MAX_MISSIONLOCATIONS .<br />
4- Then checkpoint is placed on according to ids of checkpoint.<br />
5- After Collecting trash/anything from these locations (Currently after 4 checkpoints) the mission is finished and you can award his payment/score.<br />
<br />
VIDEO : <a href="https://www.youtube.com/watch?v=V0gRIoInTIU" target="_blank">https://www.youtube.com/watch?v=V0gRIoInTIU</a><br />
<br />
<font size="5"><b><div align="center">Commands</div></b></font><br />
/mission - Starts a mission [Also shows the status that how many trashes are collected and all.]<br />
/cancelmission - Stops a started mission.<br />
<br />
<b><div align="center"><font size="4">Conclusion</font></div></b><br />
-- This Filterscript is according to me a unique one and i have not find this kind of system around here. (Maybe Present)<br />
-- The Title ANY is given because its currently a trashmaster job and you can assign any job to it whether its a pizzaboyjob , papperboyjob or any other jobs, you need to just change the vehicle id and messages after collecting or finishing it..<br />
<br />
<br />
<b><div align="center"><font size="4">Credits</font></div></b><br />
<br />
SAMP TEAM: wonderful platform outhere.<br />
Zeex: ZCMD<br />
The server scripter : which i have adopted the idea :P<br />
<br />
<div align="center"><b><font size="4">Download</font></b></div>
The File : <a href="https://pastebin.com/QZdYRtwr" target="_blank">https://pastebin.com/QZdYRtwr</a><br />
ZCMD: You can find on Internet.<br />
<br />
<br />
P.S: <br />
1- My english may be bad <img alt="" border="0" class="inlineimg" src="images/smilies/razz.gif" title="Tongue"/><br />
2- Do not republish this script.<br />
3- I am not good in preseting stuffs <img alt="" border="0" class="inlineimg" src="images/smilies/sad.gif" title="Sad"/><br />
4- All comments will be taken as a compliment and will correct it if i have done anything wrong.]]></description>
			<content:encoded><![CDATA[<b><font size="5"><div align="center">Mission System - Trashmaster</div></font></b><br />
Cheers Friends,<br />
I have not released anything useful for others. so i decided i can release this System now so others can use it. <br />
<br />
<br />
<br />
<font size="4"><div align="center"><b>Details</b></div></font><br />
This Filterscript Script is basically the idea adopted from one of the best <b>CNR Gamemode</b>(Present). this has got some features that you can use in your server.<br />
<br />
<div align="center"><b><font size="4">Working</font></b></div>
<b>#define MAX_MISSIONLOCATIONS 13 <br />
#define MAX_LOC_NUM 4<br />
#define MISSION_VEHICLE 408</b><br />
<br />
so i am going to explain with the help of above defines in the script....<br />
<br />
1- Enter a Mission Vehicle and type /mission. [The Mission Vehicle is currently a trashmaster]<br />
2- After typing /mission, the server chooses four random locations [MAX_LOC_NUM = 4 (can be changed)]<br />
3- It arranges according to ids of the checkpoints on MAX_MISSIONLOCATIONS .<br />
4- Then checkpoint is placed on according to ids of checkpoint.<br />
5- After Collecting trash/anything from these locations (Currently after 4 checkpoints) the mission is finished and you can award his payment/score.<br />
<br />
VIDEO : <a href="https://www.youtube.com/watch?v=V0gRIoInTIU" target="_blank">https://www.youtube.com/watch?v=V0gRIoInTIU</a><br />
<br />
<font size="5"><b><div align="center">Commands</div></b></font><br />
/mission - Starts a mission [Also shows the status that how many trashes are collected and all.]<br />
/cancelmission - Stops a started mission.<br />
<br />
<b><div align="center"><font size="4">Conclusion</font></div></b><br />
-- This Filterscript is according to me a unique one and i have not find this kind of system around here. (Maybe Present)<br />
-- The Title ANY is given because its currently a trashmaster job and you can assign any job to it whether its a pizzaboyjob , papperboyjob or any other jobs, you need to just change the vehicle id and messages after collecting or finishing it..<br />
<br />
<br />
<b><div align="center"><font size="4">Credits</font></div></b><br />
<br />
SAMP TEAM: wonderful platform outhere.<br />
Zeex: ZCMD<br />
The server scripter : which i have adopted the idea :P<br />
<br />
<div align="center"><b><font size="4">Download</font></b></div>
The File : <a href="https://pastebin.com/QZdYRtwr" target="_blank">https://pastebin.com/QZdYRtwr</a><br />
ZCMD: You can find on Internet.<br />
<br />
<br />
P.S: <br />
1- My english may be bad <img alt="" border="0" class="inlineimg" src="images/smilies/razz.gif" title="Tongue"/><br />
2- Do not republish this script.<br />
3- I am not good in preseting stuffs <img alt="" border="0" class="inlineimg" src="images/smilies/sad.gif" title="Sad"/><br />
4- All comments will be taken as a compliment and will correct it if i have done anything wrong.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] beckzy's mod shops]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=673712</link>
			<pubDate>Thu, 02 Apr 2020 22:56:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=5303">beckzy</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=673712</guid>
			<description><![CDATA[This is a filterscript for server side mod shops. It requires <a href="https://sampforum.blast.hk/showthread.php?tid=102865" target="_blank">Incognito's streamer plugin</a> for the use of dynamic checkpoints. There are pros and cons to using scripted mod shops:<br />
<br />
Pros:<br />
- Most land vehicles can be modded<br />
- Front/rear bumpers AND front/rear bullbars can be applied together<br />
- All wheels are listed for all moddable vehicles<br />
- You can change the paintjob of Camper<br />
- OnVehicleRespray2, OnVehiclePaintjob2, and OnVehicleMod2 are used. OnVehicleRespray2 isn't called when you view a component or when you leave a mod shop (unlike OnVehicleRespray) , and OnVehiclePaintjob2 isn't called when you view a paintjob (unlike OnVehiclePaintjob)<br />
- As all valid components are stored for each vehicle model, OnVehicleMod filters out any invalid components added through hacks<br />
<br />
Cons:<br />
- You can't choose the vehicle color, though you can still Respray the vehicle to the next default color<br />
<br />
Notes:<br />
- OnVehicleRespray2, OnVehiclePaintjob2, and OnVehicleMod2 are called through all scripts<br />
- You might want to move the following into an include if you're restoring paintjobs/components in other scripts:<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 50px;
		text-align: left;
		overflow: auto">new vpaintjob[MAX_VEHICLES] = {3, ...};
new vcompids[MAX_VEHICLES][MAX_COMPONENT_TYPES];</pre>
</div>as well as AddVehicleComponent2, RemoveVehicleComponent2, and the vehiclemodinfo array.<br />
<br />
- When destroying a vehicle (DestroyVehicle) you should reset the paintjob/components. Example:<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 114px;
		text-align: left;
		overflow: auto">vpaintjob[vehicleid-1] = 3;

for (new c = 0; c &lt; MAX_COMPONENT_TYPES; c++)
{
	vcompids[vehicleid-1][c] = 0;
}</pre>
</div>Edit - 03/04/2020:<br />
<br />
- Fixed Dumper being allowed in Transfender (it isn't moddable)<br />
- Fixed invalid components not being filtered on aircraft and trailers<br />
<br />
Edit2 - 03/04/2020:<br />
<br />
- Fixed entering Loco Low Co and Wheel Arch Angels setting the wrong mod shop ID<br />
<br />
Edit - 25/04/2020:<br />
<br />
- When the mod shop menu is destroyed pmodshopmenu is set to Menu:INVALID_MENU instead of Menu:0<br />
- Sound ID 1055 "SOUND_SHOP_BUY_DENIED" is played with the "You don't have enough money to buy this item." text when you try to respray, buy a paint job, or buy a component without enough money<br />
- Added a second text draw displaying "You have already bought this item!" if you try to select a one type component that you've already bought (e.g. Hydraulics) . Sound ID 1055 "SOUND_SHOP_BUY_DENIED" will also be played when this text shows<br />
<br />
Video (thanks Deadsh0ty) - <a href="https://www.youtube.com/watch?v=VZQgn5SkWo4" target="_blank">https://www.youtube.com/watch?v=VZQgn5SkWo4</a><br />
<br />
Download - <a href="https://mega.nz/file/P24TAKxS#_Jv6Q4qVMCLBR-8iWoYFcrVDqmbFGv2qx5sAzBO3dso" target="_blank">click</a>]]></description>
			<content:encoded><![CDATA[This is a filterscript for server side mod shops. It requires <a href="https://sampforum.blast.hk/showthread.php?tid=102865" target="_blank">Incognito's streamer plugin</a> for the use of dynamic checkpoints. There are pros and cons to using scripted mod shops:<br />
<br />
Pros:<br />
- Most land vehicles can be modded<br />
- Front/rear bumpers AND front/rear bullbars can be applied together<br />
- All wheels are listed for all moddable vehicles<br />
- You can change the paintjob of Camper<br />
- OnVehicleRespray2, OnVehiclePaintjob2, and OnVehicleMod2 are used. OnVehicleRespray2 isn't called when you view a component or when you leave a mod shop (unlike OnVehicleRespray) , and OnVehiclePaintjob2 isn't called when you view a paintjob (unlike OnVehiclePaintjob)<br />
- As all valid components are stored for each vehicle model, OnVehicleMod filters out any invalid components added through hacks<br />
<br />
Cons:<br />
- You can't choose the vehicle color, though you can still Respray the vehicle to the next default color<br />
<br />
Notes:<br />
- OnVehicleRespray2, OnVehiclePaintjob2, and OnVehicleMod2 are called through all scripts<br />
- You might want to move the following into an include if you're restoring paintjobs/components in other scripts:<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 50px;
		text-align: left;
		overflow: auto">new vpaintjob[MAX_VEHICLES] = {3, ...};
new vcompids[MAX_VEHICLES][MAX_COMPONENT_TYPES];</pre>
</div>as well as AddVehicleComponent2, RemoveVehicleComponent2, and the vehiclemodinfo array.<br />
<br />
- When destroying a vehicle (DestroyVehicle) you should reset the paintjob/components. Example:<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 114px;
		text-align: left;
		overflow: auto">vpaintjob[vehicleid-1] = 3;

for (new c = 0; c &lt; MAX_COMPONENT_TYPES; c++)
{
	vcompids[vehicleid-1][c] = 0;
}</pre>
</div>Edit - 03/04/2020:<br />
<br />
- Fixed Dumper being allowed in Transfender (it isn't moddable)<br />
- Fixed invalid components not being filtered on aircraft and trailers<br />
<br />
Edit2 - 03/04/2020:<br />
<br />
- Fixed entering Loco Low Co and Wheel Arch Angels setting the wrong mod shop ID<br />
<br />
Edit - 25/04/2020:<br />
<br />
- When the mod shop menu is destroyed pmodshopmenu is set to Menu:INVALID_MENU instead of Menu:0<br />
- Sound ID 1055 "SOUND_SHOP_BUY_DENIED" is played with the "You don't have enough money to buy this item." text when you try to respray, buy a paint job, or buy a component without enough money<br />
- Added a second text draw displaying "You have already bought this item!" if you try to select a one type component that you've already bought (e.g. Hydraulics) . Sound ID 1055 "SOUND_SHOP_BUY_DENIED" will also be played when this text shows<br />
<br />
Video (thanks Deadsh0ty) - <a href="https://www.youtube.com/watch?v=VZQgn5SkWo4" target="_blank">https://www.youtube.com/watch?v=VZQgn5SkWo4</a><br />
<br />
Download - <a href="https://mega.nz/file/P24TAKxS#_Jv6Q4qVMCLBR-8iWoYFcrVDqmbFGv2qx5sAzBO3dso" target="_blank">click</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] Nickk's TextDraw Editor v5.0 (Final Release) - Multilanguage support!]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=672686</link>
			<pubDate>Mon, 24 Feb 2020 13:13:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=141982">Nickk888</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=672686</guid>
			<description><![CDATA[<div align="center"><img alt="" border="0" src="https://i.imgur.com/awiZVSr.png"/><br />
<img alt="" border="0" src="https://i.imgur.com/VpJg5ow.png"/><br />
<br />
Hello again dear SA-MP community! I'm very happy to release the final version of my TextDraw editor! I've improved the code and performance a little bit, i've also added a few new features to the script! It's still very easy to use and Plugin free so you can use it without worrying that a plugin might not work in a new version of SA-MP, it's like i said the final release, there will be no new features in the future beside bugfixes that is.<br />
Old Post: <a href="https://sampforum.blast.hk/showthread.php?tid=641085" target="_blank">https://sampforum.blast.hk/showthread.php?tid=641085</a><br />
<br />
<b><font color="DarkOrchid">About Script:</font></b><br />
NTD is a TextDraw editor, i got inspired by iPLEOMAX's TextDraw editor he made a few years ago, my goal was to make a Plugin free, easy to use, straight forward TextDraw editor, the script contains a lot of cool features, more then the original editor by iPLEOMAX! (More below).<br />
<br />
<b><font color="DarkOrchid">What has changed in v5.0?:</font></b><br />
Beside code optimizations and some known bugfixes, i've also added a File based language system! Yes! It's now possible to add new languages without interacting with the code! All messages are contained in the XML files in the "languages" directory! Why? Because I've got a lot of request to add new languages into the script, so, to make it easier for people, i created this system.<br />
<br />
This system works also great with the new File based template system that allows you to create new templates in a single file! Also with different languages!<br />
<br />
A new and cool feature is the "Compact mode", if you have a lot of stuff on the screen while editing, you can make a smaller version of the interface that you can place anywhere on the screen on both X and Y coords!<br />
<br />
A big problem that has Beta 1.0-4.45 is that there is no option to change the layer of the TextDraw, so if you wanted to create a Background for your TextDraw's, you had to make it in the Post after exporting. Now you can change the layer dynamically within the script!<br />
<br />
Also you are now able to change the values of a TextDraw manually by pressing the ALT key while editing.<br />
<br />
<b><font color="DarkOrchid">What has changed in v6.0?:</font></b><br />
It's now possible to create and edit Player Progress Bars (By Southclaws), you can freely move, resize, color, change transparency and the max value.<br />
<br />
Buttons are now been disabled if the TextDraw isn't supporting a feature, that makes it easier and clearer to edit.<br />
<br />
A few new languages has been added!<br />
<br />
<b>More changes in the "Changelog" rubric</b><br />
<br />
<b><font color="DarkOrchid">Features:</font></b><ul><li>Clickable interface.</li>
<li>No Plugins needed!</li>
<li>Multilanguage support (English, Polish and German natively included)</li>
<li>Player Progress Bar Support (With Color and Max Percentage settings!)</li>
<li>Build-in Sprite selector(Over 300 sprites!).</li>
<li>Preview Model and Sprites support.</li>
<li>Changeable TextDraw variable name in-game.</li>
<li>Over 35 Pre-made colors to choose.</li>
<li>Fully customizable interface(Button colors, override colors &amp; interface position).</li>
<li>TextDraw templates(Pre-made TextDraws to choose and create your own!).</li>
<li>Quick Selection tool(Just select your TextDraw! No need to search within the Dialog!).</li>
<li>TextDraw visibility option(If you want to show other players your work!).</li>
<li>Fully editable Preview Model(Rotation, Zoom, ID and colors!).</li>
<li>Easy export your project(Simple export or Self-working Script).</li>
<li>Quick, fluid and stable working environment.</li>
<li>File based language and templates system(Add new languages without code interaction!).</li>
<li>Array Export mode(Collapses TextDraws with default Variable name into an Array shortening the code amount!).</li>
<li>TextDraw layering(Change the layer of a TextDraw In-Game!).</li>
<li>Editor Compact mode(Creates a smaller version of the interface to make working easier!).</li>
</ul><b>And many more!</b><br />
<br />
<b><font color="DarkOrchid">Changelog:</font></b><br />
5.0<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 258px;
		text-align: left;
		overflow: auto">- Fixed small errors.
- Code optimizations.
*ADDED* File based language system allows you to add new languages without hard coding it!
*ADDED* Editor compact mode that creates a smaller editor interface that you can move in the X and Y coordinates!
*ADDED* File base template system allows you to add new templates in different languages within a single file!
*ADDED* Feature to change the layer of a Textdraw.
*ADDED* Manual value change using the ALT key while changing values.
*REMOVED* Polish TXD buttons.
*REMOVED* Update check due to non existence domain.
*IMPROVED* Dialog page change with now both "Next" and "Back" button.
*IMPROVED* Small changes in the interface colors and style.
*IMRPOVED* New Splash Screen/Welcome Screen.
*IMPROVED* Changed from simple for-loops to much faster foreach-loops for projects, textdraws, languages and templates.
*IMPROVED* Custom color changing dialog now allows you to insert both HEX and RGBA values.
*IMPROVED* Editor interface is now always on top of everything.</pre>
</div>6.0<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 226px;
		text-align: left;
		overflow: auto">*ADDED* Player Progress Bar (By Southclaws) support.
*ADDED* "Player Progress Bar" template in "templates.xml"
*FIXED* Deleting a TextDraw wasn't deleted from the iterator so it was been saved anyways.
*FIXED* Callback OnPlayerDisconnect had a missing parameter in code and while project export.
*FIXED* A bug with the list item recognition in "ndialog-pages.inc" and the NTD itself.
*IMPROVED* Editor Buttons are now disabled when a textdraw isn't supporting a feature.
*IMPROVED* Default TextDraw name is now categorized according to the type.
*IMPROVED* Changed the "Preview Model" button to "TextDraw Settings".
*IMPROVED* Directory names are now lower case for use in linux OS.
- Changes in all language files (New dialog and messages).
- Code has been "Const-corrected" for use in the Zeex Compiler.
- Code optimization.
- Fixed other small bugs.</pre>
</div><b><font color="DarkOrchid">Screenshots(Beta 4.0):</font></b><br />
<a href="https://imgur.com/a/Bs8Je" target="_blank">https://imgur.com/a/Bs8Je</a><br />
<br />
<b><font color="DarkOrchid">Video:</font></b><br />
v5.0: <a href="http://tiny.cc/x6wfkz" target="_blank">Y0uTube</a><br />
<br />
<b><font color="DarkOrchid">Download:</font></b><br />
Releases: <a href="https://github.com/Nickk888SAMP/TextDraw-Editor/releases" target="_blank">https://github.com/Nickk888SAMP/Text...ditor/releases</a><br />
Source: <a href="https://github.com/Nickk888SAMP/TextDraw-Editor" target="_blank">https://github.com/Nickk888SAMP/TextDraw-Editor</a><br />
<br />
<b><font color="DarkOrchid">Want new languages?:</font></b><br />
<a href="https://github.com/Nickk888SAMP/TextDraw-Editor/tree/master/scriptfiles" target="_blank">https://github.com/Nickk888SAMP/Text...er/scriptfiles</a><br />
<b>You want a new language? <br />
Translate the "lang_eng.xml", "templates.xml" and "languages.list" file and send it to <a href="mailto:kevinnickk888samp@gmail.com">kevinnickk888samp@gmail.com</a>!<br />
Your new language will appear on the GitHub page soon after!<br />
You can also push a pull request on GitHub!</b><br />
<br />
<b><font color="DarkOrchid">Credits:</font></b><br />
a_samp: SAMP Team<br />
ZCMD: Zeex<br />
DFILE: DrAkE<br />
sscanf: Y-Less<br />
<a href="https://sampforum.blast.hk/showthread.php?tid=662089" target="_blank">ndialog-pages</a>: By Me <br />
progress2: Southclaws<br />
<br />
</div>]]></description>
			<content:encoded><![CDATA[<div align="center"><img alt="" border="0" src="https://i.imgur.com/awiZVSr.png"/><br />
<img alt="" border="0" src="https://i.imgur.com/VpJg5ow.png"/><br />
<br />
Hello again dear SA-MP community! I'm very happy to release the final version of my TextDraw editor! I've improved the code and performance a little bit, i've also added a few new features to the script! It's still very easy to use and Plugin free so you can use it without worrying that a plugin might not work in a new version of SA-MP, it's like i said the final release, there will be no new features in the future beside bugfixes that is.<br />
Old Post: <a href="https://sampforum.blast.hk/showthread.php?tid=641085" target="_blank">https://sampforum.blast.hk/showthread.php?tid=641085</a><br />
<br />
<b><font color="DarkOrchid">About Script:</font></b><br />
NTD is a TextDraw editor, i got inspired by iPLEOMAX's TextDraw editor he made a few years ago, my goal was to make a Plugin free, easy to use, straight forward TextDraw editor, the script contains a lot of cool features, more then the original editor by iPLEOMAX! (More below).<br />
<br />
<b><font color="DarkOrchid">What has changed in v5.0?:</font></b><br />
Beside code optimizations and some known bugfixes, i've also added a File based language system! Yes! It's now possible to add new languages without interacting with the code! All messages are contained in the XML files in the "languages" directory! Why? Because I've got a lot of request to add new languages into the script, so, to make it easier for people, i created this system.<br />
<br />
This system works also great with the new File based template system that allows you to create new templates in a single file! Also with different languages!<br />
<br />
A new and cool feature is the "Compact mode", if you have a lot of stuff on the screen while editing, you can make a smaller version of the interface that you can place anywhere on the screen on both X and Y coords!<br />
<br />
A big problem that has Beta 1.0-4.45 is that there is no option to change the layer of the TextDraw, so if you wanted to create a Background for your TextDraw's, you had to make it in the Post after exporting. Now you can change the layer dynamically within the script!<br />
<br />
Also you are now able to change the values of a TextDraw manually by pressing the ALT key while editing.<br />
<br />
<b><font color="DarkOrchid">What has changed in v6.0?:</font></b><br />
It's now possible to create and edit Player Progress Bars (By Southclaws), you can freely move, resize, color, change transparency and the max value.<br />
<br />
Buttons are now been disabled if the TextDraw isn't supporting a feature, that makes it easier and clearer to edit.<br />
<br />
A few new languages has been added!<br />
<br />
<b>More changes in the "Changelog" rubric</b><br />
<br />
<b><font color="DarkOrchid">Features:</font></b><ul><li>Clickable interface.</li>
<li>No Plugins needed!</li>
<li>Multilanguage support (English, Polish and German natively included)</li>
<li>Player Progress Bar Support (With Color and Max Percentage settings!)</li>
<li>Build-in Sprite selector(Over 300 sprites!).</li>
<li>Preview Model and Sprites support.</li>
<li>Changeable TextDraw variable name in-game.</li>
<li>Over 35 Pre-made colors to choose.</li>
<li>Fully customizable interface(Button colors, override colors &amp; interface position).</li>
<li>TextDraw templates(Pre-made TextDraws to choose and create your own!).</li>
<li>Quick Selection tool(Just select your TextDraw! No need to search within the Dialog!).</li>
<li>TextDraw visibility option(If you want to show other players your work!).</li>
<li>Fully editable Preview Model(Rotation, Zoom, ID and colors!).</li>
<li>Easy export your project(Simple export or Self-working Script).</li>
<li>Quick, fluid and stable working environment.</li>
<li>File based language and templates system(Add new languages without code interaction!).</li>
<li>Array Export mode(Collapses TextDraws with default Variable name into an Array shortening the code amount!).</li>
<li>TextDraw layering(Change the layer of a TextDraw In-Game!).</li>
<li>Editor Compact mode(Creates a smaller version of the interface to make working easier!).</li>
</ul><b>And many more!</b><br />
<br />
<b><font color="DarkOrchid">Changelog:</font></b><br />
5.0<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 258px;
		text-align: left;
		overflow: auto">- Fixed small errors.
- Code optimizations.
*ADDED* File based language system allows you to add new languages without hard coding it!
*ADDED* Editor compact mode that creates a smaller editor interface that you can move in the X and Y coordinates!
*ADDED* File base template system allows you to add new templates in different languages within a single file!
*ADDED* Feature to change the layer of a Textdraw.
*ADDED* Manual value change using the ALT key while changing values.
*REMOVED* Polish TXD buttons.
*REMOVED* Update check due to non existence domain.
*IMPROVED* Dialog page change with now both "Next" and "Back" button.
*IMPROVED* Small changes in the interface colors and style.
*IMRPOVED* New Splash Screen/Welcome Screen.
*IMPROVED* Changed from simple for-loops to much faster foreach-loops for projects, textdraws, languages and templates.
*IMPROVED* Custom color changing dialog now allows you to insert both HEX and RGBA values.
*IMPROVED* Editor interface is now always on top of everything.</pre>
</div>6.0<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 226px;
		text-align: left;
		overflow: auto">*ADDED* Player Progress Bar (By Southclaws) support.
*ADDED* "Player Progress Bar" template in "templates.xml"
*FIXED* Deleting a TextDraw wasn't deleted from the iterator so it was been saved anyways.
*FIXED* Callback OnPlayerDisconnect had a missing parameter in code and while project export.
*FIXED* A bug with the list item recognition in "ndialog-pages.inc" and the NTD itself.
*IMPROVED* Editor Buttons are now disabled when a textdraw isn't supporting a feature.
*IMPROVED* Default TextDraw name is now categorized according to the type.
*IMPROVED* Changed the "Preview Model" button to "TextDraw Settings".
*IMPROVED* Directory names are now lower case for use in linux OS.
- Changes in all language files (New dialog and messages).
- Code has been "Const-corrected" for use in the Zeex Compiler.
- Code optimization.
- Fixed other small bugs.</pre>
</div><b><font color="DarkOrchid">Screenshots(Beta 4.0):</font></b><br />
<a href="https://imgur.com/a/Bs8Je" target="_blank">https://imgur.com/a/Bs8Je</a><br />
<br />
<b><font color="DarkOrchid">Video:</font></b><br />
v5.0: <a href="http://tiny.cc/x6wfkz" target="_blank">Y0uTube</a><br />
<br />
<b><font color="DarkOrchid">Download:</font></b><br />
Releases: <a href="https://github.com/Nickk888SAMP/TextDraw-Editor/releases" target="_blank">https://github.com/Nickk888SAMP/Text...ditor/releases</a><br />
Source: <a href="https://github.com/Nickk888SAMP/TextDraw-Editor" target="_blank">https://github.com/Nickk888SAMP/TextDraw-Editor</a><br />
<br />
<b><font color="DarkOrchid">Want new languages?:</font></b><br />
<a href="https://github.com/Nickk888SAMP/TextDraw-Editor/tree/master/scriptfiles" target="_blank">https://github.com/Nickk888SAMP/Text...er/scriptfiles</a><br />
<b>You want a new language? <br />
Translate the "lang_eng.xml", "templates.xml" and "languages.list" file and send it to <a href="mailto:kevinnickk888samp@gmail.com">kevinnickk888samp@gmail.com</a>!<br />
Your new language will appear on the GitHub page soon after!<br />
You can also push a pull request on GitHub!</b><br />
<br />
<b><font color="DarkOrchid">Credits:</font></b><br />
a_samp: SAMP Team<br />
ZCMD: Zeex<br />
DFILE: DrAkE<br />
sscanf: Y-Less<br />
<a href="https://sampforum.blast.hk/showthread.php?tid=662089" target="_blank">ndialog-pages</a>: By Me <br />
progress2: Southclaws<br />
<br />
</div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] Chaotic's Custom Emergency Siren]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=671672</link>
			<pubDate>Mon, 06 Jan 2020 14:50:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=325995">KevTheJoker</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=671672</guid>
			<description><![CDATA[<div align="center"><img alt="" border="0" src="https://i.imgur.com/2Rstr4u.png"/></div><img alt="" border="0" src="https://i.imgur.com/Tybk0E4.png"/><br />
<font face="Trebuchet MS">This filterscript allows players who are driving emergency vehicles to play an Audio for all other nearby players (both, in vehicles and standing upright). If you'd like to make your server a bit similar to the way GTA 5 functions, you can use this. I haven't added my credits to it, so do what you want with it, fine by me. I've released this filterscript, because I've noticed some persons are having difficulties using the <b><u>PlayAudioStreamForPlayer</u></b> function. Before you continue to read the body of this thread, I must inform you that this script isn't configured to check if the player is in an emergency vehicle or not. You can configure it to suit that requirement. If you're unable to do it, I'll gladly assist after you comment with the issue(s) you have. Enjoy! <img alt="" border="0" class="inlineimg" src="images/smilies/smile.png" title="Smiley"/></font><br />
<br />
<img alt="" border="0" src="https://i.imgur.com/bVS0rRa.png"/><br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 498px;
		text-align: left;
		overflow: auto">#define FILTERSCRIPT // This is to define the script as a FS
#include &lt;a_samp&gt;
#include &lt;zcmd&gt;
#include &lt;sscanf2&gt;
#include &lt;foreach&gt;

#define MAX_DYNAMIC_CARS 500 // If this isn't already in your script, add it

enum VehicleSirenInfo
{
	EmergencyCopSiren
}

new VehicleInfo[MAX_DYNAMIC_CARS][VehicleSirenInfo];

// If a player moves out of the area, the siren will turn off (not fade out), and if they enter the zone with the siren again, it'll
// start the siren audio over again.

stock InAreaWithCopSiren(playerid) // This is to check if a player is in the area with the siren audio
{
	new Float:x, Float:y, Float:z;
	for(new i = 0; i &lt; MAX_DYNAMIC_CARS; i ++)
	{
		GetVehiclePos(i, x, y, z);
		if(IsPlayerInRangeOfPoint(playerid, 100.0, x, y, z))
		{
			if(VehicleInfo[i][EmergencyCopSiren] != 0)
			{
				SetPVarFloat(playerid, "CopSirenX", x);
				SetPVarFloat(playerid, "CopSirenY", y);
				SetPVarFloat(playerid, "CopSirenZ", z);
				return 1;
			}
		}
	}
	return false;
}

public OnPlayerUpdate(playerid)
{
	if(InAreaWithCopSiren(playerid))
	{
			if(!GetPVarInt(playerid, "CopSiren"))
			{
				SetPVarInt(playerid,"CopSiren", 1);
				new link[128];
				format(link, 128, "https://falcon-host.org/uploads/siren.mp3"); // This is the siren which I made and merged, but you can change it.
				PlayAudioStreamForPlayer(playerid, link, GetPVarFloat(playerid, "CopSirenX"), GetPVarFloat(playerid, "CopSirenY"), GetPVarFloat(playerid, "CopSirenZ"), 100.0 , 0);
			}
	}
	else
	{
		if(GetPVarInt(playerid, "CopSiren") != 0)
		{
			DeletePVar(playerid, "CopSiren");
			StopAudioStreamForPlayer(playerid);
		}
	}
	return 1;
}

// This is mandatory because if several emergency cars are in the area at the same time, and the player disconnects, the siren will be turned off.
// It is also added to prevent bugs from occurring, to restart the server over and over.
public OnPlayerDisconnect(playerid, reason)
{											
	if(IsPlayerInAnyVehicle(playerid))
	{
		new Float:x, Float:y, Float:z;
		new VehicleID = GetPlayerVehicleID(playerid);
		if(VehicleInfo[VehicleID][EmergencyCopSiren] != 0)
		{
			GetVehiclePos(VehicleID, x, y, z);
			VehicleInfo[VehicleID][EmergencyCopSiren] = 0;
			foreach(new i : Player)
			{
				if(IsPlayerInRangeOfPoint(i, 100.0, x, y, z))
				{
					if(GetPVarInt(i, "CopSiren") != 0) 
                                        {
						StopAudioStreamForPlayer(i);
						SetPVarInt(i, "CopSiren", 0);
					}
				}
			}
		}
	}
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	if(VehicleInfo[vehicleid][EmergencyCopSiren] != 0)
	{ 
		new Float:x, Float:y, Float:z;
		GetVehiclePos(vehicleid, x, y, z);
		foreach(new i : Player)
		{
			if(IsPlayerInRangeOfPoint(i, 100.0, x, y, z))
			{
				if(GetPVarInt(i,"CopSiren") != 0)
				{
					StopAudioStreamForPlayer(i);
					SetPVarInt(i, "CopSiren", 0);
				}
			}
		}
		VehicleInfo[vehicleid][EmergencyCopSiren] = 0;
	}
	return 1;
}

// This is the command to be used: /siren on = turns on the siren, and /siren off = turns it off.
CMD:siren(playerid, params[])
{
	new Float:x, Float:y, Float:z, VehicleID, option[16];
	if(sscanf(params, "s[16]", option))
	{
		SendClientMessage(playerid, 0xFF6347FF, "Usage: /siren [parameter]");
		SendClientMessage(playerid, 0xFF6347FF, "Parameters: {FFFFFF}on, off");
		return true;
	}
	if(strcmp(option, "on", true) == 0)
	{
		VehicleID = GetPlayerVehicleID(playerid);
		GetVehiclePos(VehicleID, x, y, z);
		new link[128];
		format(link, 128, "https://falcon-host.org/uploads/siren.mp3");
		foreach(new i : Player)
		{
			if(IsPlayerInRangeOfPoint(i, 100.0, x, y, z))
			{
				PlayAudioStreamForPlayer(i, link, x, y, z, 100.0, 0);
				SetPVarInt(i, "CopSiren", 1);
			}
		}
		VehicleInfo[VehicleID][EmergencyCopSiren] = 1; // 1 = true
	}
	if(strcmp(option, "off", true) == 0)
	{
		VehicleID = GetPlayerVehicleID(playerid);
		GetVehiclePos(VehicleID, x, y, z);
		foreach(new i : Player)
		{
			if(IsPlayerInRangeOfPoint(i, 100.0, x, y, z))
			{
				if(GetPVarInt(i,"CopSiren") != 0)
				{
					StopAudioStreamForPlayer(i);
					SetPVarInt(i, "CopSiren", 0);
				}
			}
		}
		VehicleInfo[VehicleID][EmergencyCopSiren] = 0; // 0 = not true
	}
	return 1;
}</pre>
</div><img alt="" border="0" src="https://i.imgur.com/dtPxKZv.png"/><br />
<font face="Trebuchet MS"><b>Links: <a href="https://discordapp.com/invite/jr5Ywkm" target="_blank">https://discordapp.com/invite/jr5Ywkm</a></b> OR <b><a href="https://discord.io/ChaoticTheDev" target="_blank">https://discord.io/ChaoticTheDev</a></b><br />
</font><br />
<img alt="" border="0" src="https://i.imgur.com/iYS5XOC.png"/><br />
<font face="Trebuchet MS"><b>sscanf Include:</b> <a href="https://falcon-host.org/uploads/sscanf.rar" target="_blank">https://falcon-host.org/uploads/sscanf.rar</a><br />
<b>sscanf Plugin:</b> <a href="https://falcon-host.org/uploads/sscanf-plugin.rar" target="_blank">https://falcon-host.org/uploads/sscanf-plugin.rar</a><br />
<br />
<b>foreach Include:</b> <a href="https://falcon-host.org/uploads/foreach.rar" target="_blank">https://falcon-host.org/uploads/foreach.rar</a><br />
<br />
<b>a_samp Include:</b> <a href="https://falcon-host.org/uploads/a_samp.rar" target="_blank">https://falcon-host.org/uploads/a_samp.rar</a><br />
<br />
<b>zcmd Include:</b> <a href="https://falcon-host.org/uploads/zcmd.rar" target="_blank">https://falcon-host.org/uploads/zcmd.rar</a></font><br />
<br />
<font size="5"><font color="Red"><b><font face="Arial Black">Please Rep me if you like this filterscript <img alt="" border="0" class="inlineimg" src="images/smilies/rolleyes.png" title="Roll Eyes (Sarcastic)"/></font></b></font></font><br />
<br />
<img alt="" border="0" src="https://i.imgur.com/3zkYyjk.png"/><br />
I'll upload a video in the future to let you see what it looks like.]]></description>
			<content:encoded><![CDATA[<div align="center"><img alt="" border="0" src="https://i.imgur.com/2Rstr4u.png"/></div><img alt="" border="0" src="https://i.imgur.com/Tybk0E4.png"/><br />
<font face="Trebuchet MS">This filterscript allows players who are driving emergency vehicles to play an Audio for all other nearby players (both, in vehicles and standing upright). If you'd like to make your server a bit similar to the way GTA 5 functions, you can use this. I haven't added my credits to it, so do what you want with it, fine by me. I've released this filterscript, because I've noticed some persons are having difficulties using the <b><u>PlayAudioStreamForPlayer</u></b> function. Before you continue to read the body of this thread, I must inform you that this script isn't configured to check if the player is in an emergency vehicle or not. You can configure it to suit that requirement. If you're unable to do it, I'll gladly assist after you comment with the issue(s) you have. Enjoy! <img alt="" border="0" class="inlineimg" src="images/smilies/smile.png" title="Smiley"/></font><br />
<br />
<img alt="" border="0" src="https://i.imgur.com/bVS0rRa.png"/><br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 498px;
		text-align: left;
		overflow: auto">#define FILTERSCRIPT // This is to define the script as a FS
#include &lt;a_samp&gt;
#include &lt;zcmd&gt;
#include &lt;sscanf2&gt;
#include &lt;foreach&gt;

#define MAX_DYNAMIC_CARS 500 // If this isn't already in your script, add it

enum VehicleSirenInfo
{
	EmergencyCopSiren
}

new VehicleInfo[MAX_DYNAMIC_CARS][VehicleSirenInfo];

// If a player moves out of the area, the siren will turn off (not fade out), and if they enter the zone with the siren again, it'll
// start the siren audio over again.

stock InAreaWithCopSiren(playerid) // This is to check if a player is in the area with the siren audio
{
	new Float:x, Float:y, Float:z;
	for(new i = 0; i &lt; MAX_DYNAMIC_CARS; i ++)
	{
		GetVehiclePos(i, x, y, z);
		if(IsPlayerInRangeOfPoint(playerid, 100.0, x, y, z))
		{
			if(VehicleInfo[i][EmergencyCopSiren] != 0)
			{
				SetPVarFloat(playerid, "CopSirenX", x);
				SetPVarFloat(playerid, "CopSirenY", y);
				SetPVarFloat(playerid, "CopSirenZ", z);
				return 1;
			}
		}
	}
	return false;
}

public OnPlayerUpdate(playerid)
{
	if(InAreaWithCopSiren(playerid))
	{
			if(!GetPVarInt(playerid, "CopSiren"))
			{
				SetPVarInt(playerid,"CopSiren", 1);
				new link[128];
				format(link, 128, "https://falcon-host.org/uploads/siren.mp3"); // This is the siren which I made and merged, but you can change it.
				PlayAudioStreamForPlayer(playerid, link, GetPVarFloat(playerid, "CopSirenX"), GetPVarFloat(playerid, "CopSirenY"), GetPVarFloat(playerid, "CopSirenZ"), 100.0 , 0);
			}
	}
	else
	{
		if(GetPVarInt(playerid, "CopSiren") != 0)
		{
			DeletePVar(playerid, "CopSiren");
			StopAudioStreamForPlayer(playerid);
		}
	}
	return 1;
}

// This is mandatory because if several emergency cars are in the area at the same time, and the player disconnects, the siren will be turned off.
// It is also added to prevent bugs from occurring, to restart the server over and over.
public OnPlayerDisconnect(playerid, reason)
{											
	if(IsPlayerInAnyVehicle(playerid))
	{
		new Float:x, Float:y, Float:z;
		new VehicleID = GetPlayerVehicleID(playerid);
		if(VehicleInfo[VehicleID][EmergencyCopSiren] != 0)
		{
			GetVehiclePos(VehicleID, x, y, z);
			VehicleInfo[VehicleID][EmergencyCopSiren] = 0;
			foreach(new i : Player)
			{
				if(IsPlayerInRangeOfPoint(i, 100.0, x, y, z))
				{
					if(GetPVarInt(i, "CopSiren") != 0) 
                                        {
						StopAudioStreamForPlayer(i);
						SetPVarInt(i, "CopSiren", 0);
					}
				}
			}
		}
	}
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	if(VehicleInfo[vehicleid][EmergencyCopSiren] != 0)
	{ 
		new Float:x, Float:y, Float:z;
		GetVehiclePos(vehicleid, x, y, z);
		foreach(new i : Player)
		{
			if(IsPlayerInRangeOfPoint(i, 100.0, x, y, z))
			{
				if(GetPVarInt(i,"CopSiren") != 0)
				{
					StopAudioStreamForPlayer(i);
					SetPVarInt(i, "CopSiren", 0);
				}
			}
		}
		VehicleInfo[vehicleid][EmergencyCopSiren] = 0;
	}
	return 1;
}

// This is the command to be used: /siren on = turns on the siren, and /siren off = turns it off.
CMD:siren(playerid, params[])
{
	new Float:x, Float:y, Float:z, VehicleID, option[16];
	if(sscanf(params, "s[16]", option))
	{
		SendClientMessage(playerid, 0xFF6347FF, "Usage: /siren [parameter]");
		SendClientMessage(playerid, 0xFF6347FF, "Parameters: {FFFFFF}on, off");
		return true;
	}
	if(strcmp(option, "on", true) == 0)
	{
		VehicleID = GetPlayerVehicleID(playerid);
		GetVehiclePos(VehicleID, x, y, z);
		new link[128];
		format(link, 128, "https://falcon-host.org/uploads/siren.mp3");
		foreach(new i : Player)
		{
			if(IsPlayerInRangeOfPoint(i, 100.0, x, y, z))
			{
				PlayAudioStreamForPlayer(i, link, x, y, z, 100.0, 0);
				SetPVarInt(i, "CopSiren", 1);
			}
		}
		VehicleInfo[VehicleID][EmergencyCopSiren] = 1; // 1 = true
	}
	if(strcmp(option, "off", true) == 0)
	{
		VehicleID = GetPlayerVehicleID(playerid);
		GetVehiclePos(VehicleID, x, y, z);
		foreach(new i : Player)
		{
			if(IsPlayerInRangeOfPoint(i, 100.0, x, y, z))
			{
				if(GetPVarInt(i,"CopSiren") != 0)
				{
					StopAudioStreamForPlayer(i);
					SetPVarInt(i, "CopSiren", 0);
				}
			}
		}
		VehicleInfo[VehicleID][EmergencyCopSiren] = 0; // 0 = not true
	}
	return 1;
}</pre>
</div><img alt="" border="0" src="https://i.imgur.com/dtPxKZv.png"/><br />
<font face="Trebuchet MS"><b>Links: <a href="https://discordapp.com/invite/jr5Ywkm" target="_blank">https://discordapp.com/invite/jr5Ywkm</a></b> OR <b><a href="https://discord.io/ChaoticTheDev" target="_blank">https://discord.io/ChaoticTheDev</a></b><br />
</font><br />
<img alt="" border="0" src="https://i.imgur.com/iYS5XOC.png"/><br />
<font face="Trebuchet MS"><b>sscanf Include:</b> <a href="https://falcon-host.org/uploads/sscanf.rar" target="_blank">https://falcon-host.org/uploads/sscanf.rar</a><br />
<b>sscanf Plugin:</b> <a href="https://falcon-host.org/uploads/sscanf-plugin.rar" target="_blank">https://falcon-host.org/uploads/sscanf-plugin.rar</a><br />
<br />
<b>foreach Include:</b> <a href="https://falcon-host.org/uploads/foreach.rar" target="_blank">https://falcon-host.org/uploads/foreach.rar</a><br />
<br />
<b>a_samp Include:</b> <a href="https://falcon-host.org/uploads/a_samp.rar" target="_blank">https://falcon-host.org/uploads/a_samp.rar</a><br />
<br />
<b>zcmd Include:</b> <a href="https://falcon-host.org/uploads/zcmd.rar" target="_blank">https://falcon-host.org/uploads/zcmd.rar</a></font><br />
<br />
<font size="5"><font color="Red"><b><font face="Arial Black">Please Rep me if you like this filterscript <img alt="" border="0" class="inlineimg" src="images/smilies/rolleyes.png" title="Roll Eyes (Sarcastic)"/></font></b></font></font><br />
<br />
<img alt="" border="0" src="https://i.imgur.com/3zkYyjk.png"/><br />
I'll upload a video in the future to let you see what it looks like.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] IRC (Internet Relay Chat)]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=671657</link>
			<pubDate>Mon, 06 Jan 2020 02:17:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=325995">KevTheJoker</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=671657</guid>
			<description><![CDATA[<font face="Trebuchet MS"><div align="center"><img alt="" border="0" src="https://i.imgur.com/DNiML2O.png"/><br />
<b><u><font size="5">IRC (Internet Relay Chat)</font></u></b><br />
<br />
<font size="3"><b><font color="Red">WARNING</font>: If you're someone who don't like to read a lot, you can scroll to the bottom of this thread for the Pastebin link of the Filterscript. Questions concerning the filterscript will be answered in the discord server and in the comments section of this thread!</b></font></div>
<font size="5"><u><b>Introduction</b></u></font><br />
This IRC Filterscript and its simple tutorial was created for both new and old members to the field of San Andreas Multiplayer Development. It can be used for any type of gamemode, especially <b>Roleplay </b>and <b>Freeroam</b>. It's detailed with the steps to guide you on setting up the filterscript, and the functions of each part within it. Before I created this, I've looked through the present filterscripts that relates to the IRC plugin, and majority of them are too plain, while the others are spoon fed to the new developers instead of showing them what goes where, one at a time.<br />
<br />
<b><u><font size="5">Explanation of the Filterscript's Usage</font></u></b><br />
<br />
<b><u><font size="3">Step One</font></u></b><br />
First thing's first, you'll have to identify and include the plugins needed for this FS to actually work. Without them, a FS isn't a FS.<br />
<br />
With that being said, the includes which we'll be adding are <b>a_samp </b>(mandatory), <b>irc </b>(the backbone), <b>foreach </b>(to send a message to each player with a common player feature), and <b>sscanf </b>(used to split the strings).<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 82px;
		text-align: left;
		overflow: auto">#include <span style="color:#000080">&lt;a_samp&gt;</span>
#include <span style="color:#000080">&lt;irc&gt;</span>
#include <span style="color:#000080">&lt;foreach&gt;</span>
#include <span style="color:#000080">&lt;sscanf2&gt;</span></pre>
</div><b><u><font size="3">Step Two</font></u></b><br />
After the includes were identified and added to the top of the script, we'll move on to defining the <b>hostname </b>of the IRC server, the <b>port </b>attached to it, and of course, a <b>channel </b>in your IRC server for messages to be sent to, when things are done in-game.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 66px;
		text-align: left;
		overflow: auto">#define IRC_MAIN_SERVER "host.name.net"
#define IRC_PORT (1111)
#define IRC_CHANNEL "name"</pre>
</div><b><u><font size="3">Step Three</font></u></b><br />
After the IRC hostname and its affiliated resources have been defined, the color which we'll be using for sending Admin messages in-game will be <b><font color="Red">Red</font></b>, so define it:<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 34px;
		text-align: left;
		overflow: auto">#define COLOR_ADMIN   (0xFF6347FF)</pre>
</div><b><u><font size="3">Step Four</font></u></b><br />
The next thing to do is define <b>GroupID </b>and <b>BotAdmin</b>. The GroupID will be used for creating a group within the IRC server, and the BotAdmin will be used to connect your bot to the server after it's creation, and make it an Admin.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 34px;
		text-align: left;
		overflow: auto">new GroupID, BotAdmin;</pre>
</div><b><u><font size="3">Step Five</font></u></b><br />
If you're aware of how SAMP works, you should understand that <b>OnGameModeInit </b>is called when the server starts or restarts, and it is used for changes to be effective, such as mappings within the gamemode, loading data from the SQL database, and what not. This is where BotAdmin becomes beneficial, because it connects to the IRC server, using the <b>IRC_Connect</b> function, hostname from <b>IRC_MAIN_SERVER</b>, port from <b>IRC_PORT</b>, <b>nickname</b>, <b>realname</b>, and <b>username</b>.<br />
<br />
<b>NOTE:</b> The "nickname", "realname", and "username" must be changed before you compile this FS.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 146px;
		text-align: left;
		overflow: auto">public OnGameModeInit()
{
	BotAdmin = IRC_Connect(IRC_MAIN_SERVER, IRC_PORT, "nickname", "realname", "username");
	IRC_SetIntData(BotAdmin, E_IRC_CONNECT_DELAY, 5);

	GroupID = IRC_CreateGroup();
	return 1;
}</pre>
</div><b><u><font size="3">Step Six</font></u></b><br />
After this, the bot will join the defined IRC channel (<b>IRC_CHANNEL</b>) IF it's an Admin (<b>BotAdmin</b>, as identified above). If it's not an Admin bot (<b>BotAdmin</b>), it won't connect. The bot is then added to the group (<b>GroupID</b>) as well.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 162px;
		text-align: left;
		overflow: auto">public IRC_OnConnect(botid, ip[], port)
{
	if(botid == BotAdmin)
	{
		IRC_JoinChannel(botid, IRC_CHANNEL, "key");
		IRC_AddToGroup(GroupID, botid);
	}
	return 1;
}</pre>
</div><b><u><font size="3">Step Seven</font></u></b><br />
After the IRC channel is <b>disconnected </b>from the SAMP server <b>OR </b>the gamemode stops running, causing the server to stop too, it'll call this function shown below (IRC_OnDisconnect). It basically removes the bot from the group (defined by <b>GroupID</b>)<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 98px;
		text-align: left;
		overflow: auto">public IRC_OnDisconnect(botid, ip[], port, reason[])
{
	IRC_RemoveFromGroup(GroupID, botid);
	return 1;
}</pre>
</div><b><u><font size="3">Step Eight</font></u></b><br />
The next thing you'll want to do is add the <b>IRC_OnConnectAttempt </b>function. As the name says, it's called when the <b>connection is attempted</b>. This basically prints the attempt message to <b>server_log.txt</b><br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 98px;
		text-align: left;
		overflow: auto">public IRC_OnConnectAttempt(botid, ip[], port)
{
	printf("AdmWarn: IRC_OnConnectAttempt: Bot ID %d is now attempting to connect to IRC Server with Hostname (IP): %s, attached to port: %d", botid, ip, port);
	return 1;
}</pre>
</div><b><u><font size="3">Step Nine</font></u></b><br />
This function (<b>IRC_OnConnectAttemptFail</b>) below must be added to print an error message to the <b>server_log.txt</b> file if the IRC connection was attempted and unfortunately <b>failed</b>. <br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 98px;
		text-align: left;
		overflow: auto">public IRC_OnConnectAttemptFail(botid, ip[], port, reason[])
{
	printf("AdmWarn: IRC_OnConnectAttemptFail: Bot ID %d has failed to connect to IRC server with hostname (IP): %s, attached to port %d. The reason for this is %s", botid, ip, port, reason);
	return 1;
}</pre>
</div><b><u><font size="3">Step Ten</font></u></b><br />
After the gamemode stops running, and the server stops or shuts down, this common function to SAMP developers (<b>OnGameModeExit</b>) will be called. It will send a message to the channel from the bot, then destroy the group which was created earlier with (<b>GroupID</b>).<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 114px;
		text-align: left;
		overflow: auto">public OnGameModeExit()
{
	IRC_Quit(BotAdmin, "AdmWarn: The server has shut down and the gamemode will stop running.");
	IRC_DestroyGroup(GroupID);
	return 1;
}</pre>
</div><b><u><font size="3">Step Eleven</font></u></b><br />
When a player <b>connects </b> (<b>OnPlayerConnect</b>) to the server, it'll send a message to the defined IRC channel (<b>IRC_CHANNEL</b>), notifying others who are viewing the channel at the same time.<br />
<br />
<b>NOTE:</b> You'll see the new <b>ReturnName</b> and <b>SendAdminMessage</b> functions from this point onwards, but do not worry because their functions will be provided at the end of this thread.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 146px;
		text-align: left;
		overflow: auto">public OnPlayerConnect(playerid)
{
	new string[128];

	format(string, sizeof(string), "AdmWarn: Character %s (ID: %d) joined the server.", ReturnName(playerid), playerid);
	IRC_GroupSay(GroupID, IRC_CHANNEL, string);
	return 1;
}</pre>
</div><b><u><font size="3">Step Twelve</font></u></b><br />
In contrast, if a player <b>disconnects </b> (<b>OnPlayerDisconnect</b>) from the server, this function is commonly called, and as a result, the disconnect message is sent to the IRC channel.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 146px;
		text-align: left;
		overflow: auto">public OnPlayerDisconnect(playerid, reason)
{
	new string[200];
	
	format(string, sizeof(string), "AdmWarn: Character %s (ID: %d) disconnected from the server.", ReturnName(playerid), playerid);
	IRC_GroupSay(GroupID, IRC_CHANNEL, string);
	return 1;
}</pre>
</div><b><u><font size="3">Step Thirteen</font></u></b><br />
The <b>OnPlayerDeath</b> function is called when a player dies, and must be added to your FS afterwards. If a player is <b>killed </b>by <b>another player</b>, it sends a message to both the SAMP and IRC servers. On the other hand, if the player dies naturally, it'll state that.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 354px;
		text-align: left;
		overflow: auto">public OnPlayerDeath(playerid, killerid, reason)
{
	new string[200];
	if(killerid != INVALID_PLAYER_ID)
	{
		format(string, sizeof(string), "AdmWarn: %s (ID: %d) died (Killer: %s ID: %d).", ReturnName(playerid), playerid, ReturnName(killerid), killerid);
		SendAdminMessage(COLOR_ADMIN, string);

		format(string, sizeof(string), "AdmWarn: %s (ID: %d) died (Killer: %s ID: %d).", ReturnName(playerid), playerid, ReturnName(killerid), killerid);
		IRC_GroupSay(GroupID, IRC_CHANNEL, string);
	}
	else
	{
		format(string, sizeof(string), "AdmWarn: %s (ID: %d) died.", ReturnName(playerid), playerid);
		SendAdminMessage(COLOR_ADMIN, string);

		format(string, sizeof(string), "AdmWarn: %s (ID: %d) died.", ReturnName(playerid), playerid);
		IRC_GroupSay(GroupID, IRC_CHANNEL, string);
	}
	return 1;
}</pre>
</div><b><u><font size="3">Step Fourteen</font></u></b><br />
Similarly to how a player dies, a vehicle can be destroyed too. When a vehicle is destroyed by a player, their ID and character name can be identified by this function (<b>OnVehicleDeath</b>), and called to send a message.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 130px;
		text-align: left;
		overflow: auto">public OnVehicleDeath(vehicleid, killerid)
{
	new string[200];
	format(string, sizeof(string), "AdmWarn: Vehicle ID %d was destroyed by %s.", vehicleid, ReturnName(killerid));
	IRC_GroupSay(GroupID, IRC_CHANNEL, string);
	return 1;
}</pre>
</div><b><u><font size="3">Step Fifteen</font></u></b><br />
Remember those two things which you read about? The ReturnName and SendAdminMessage functions/stocks. Well, here they are:<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 322px;
		text-align: left;
		overflow: auto">stock ReturnName(playerid)
{
	new name[90], character[MAX_PLAYER_NAME];
	GetPlayerName(playerid, character, sizeof(character));
	name = character;
	return name;
}

stock SendAdminMessage(color, const str[])
{
	foreach(new i : Player)
	{
		if(IsPlayerAdmin(i))
		{
			SendClientMessage(i, color, str);
		}
	}
	return 1;
}</pre>
</div><b>ReturnName</b>: This stock gets the <b>actual </b>and <b>FULL </b>name which was used by the player to connect to the server, no matter what the size is (I doubt anyone would use a name which has 20+ characters), and returns it. <br />
<br />
<b>NOTE</b>: The underscore can be removed anytime, but I made this tutorial a bit simple.<br />
<br />
<b>SendAdminMessage</b>: This checks for all players who are connected to the server and are RCON Admins at the same time, then sends the message to them.<br />
<br />
<b><u><font size="3">Step Sixteen</font></u></b><br />
The Commands! (Yeap, I added two commands for you, <i>FOR NOW</i> <img alt="" border="0" class="inlineimg" src="images/smilies/cool.png" title="cool"/>)<br />
One command is used for communicating with RCON admins from IRC to in-game, while the other is used for kicking players from IRC.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 498px;
		text-align: left;
		overflow: auto">IRCCMD:a(botid, channel[], user[], host[], params[])
{
	if (IRC_IsOp(botid, channel, user))
	{
	    new	string[200];
	    
		if(isnull(params))
		{
                        format(string, sizeof(string), "Usage: !a [Admin Message]");
			IRC_GroupSay(GroupID, IRC_CHANNEL, string);
		}
		else
  		{
			format(string, sizeof(string), "IRC Admin: %s: %s", user, params);
			SendAdminMessage(0x6CEFF0FF, string);
		}
	}
	return 1;
}

IRCCMD:kick(botid, channel[], user[], host[], params[])
{
	if(IRC_IsOp(botid, channel, user))
	{
		new playerid, reason[64];

		if(sscanf(params, "ds[64]", playerid, reason))
		{
			IRC_Say(botid, user, "Usage: !kick [playerid] [reason]");
			return 1;
		}

		if(IsPlayerConnected(playerid))
		{
			new	string[128];

			format(string, sizeof(string), "AdmCmd: %s was kicked by %s (IRC), Reason: %s", ReturnName(playerid), user, reason);
			IRC_GroupSay(GroupID, IRC_CHANNEL, string);
			Kick(playerid);
		}
	}
	return 1;
}</pre>
</div><font size="5"><u><b>Download Links</b></u></font><br />
<b>IRC Include:</b> <a href="https://falcon-host.org/uploads/irc.rar" target="_blank">https://falcon-host.org/uploads/irc.rar</a><br />
<b>IRC Plugin:</b> <a href="https://falcon-host.org/uploads/irc-plugin.rar" target="_blank">https://falcon-host.org/uploads/irc-plugin.rar</a><br />
<br />
<b>sscanf Include:</b> <a href="https://falcon-host.org/uploads/sscanf.rar" target="_blank">https://falcon-host.org/uploads/sscanf.rar</a><br />
<b>sscanf Plugin:</b> <a href="https://falcon-host.org/uploads/sscanf-plugin.rar" target="_blank">https://falcon-host.org/uploads/sscanf-plugin.rar</a><br />
<br />
<b>foreach Include:</b> <a href="https://falcon-host.org/uploads/foreach.rar" target="_blank">https://falcon-host.org/uploads/foreach.rar</a><br />
<br />
<b>a_samp Include:</b> <a href="https://falcon-host.org/uploads/a_samp.rar" target="_blank">https://falcon-host.org/uploads/a_samp.rar</a><br />
<br />
<b>YouTube Video of what I just did:</b> <a href="https://www.youtube.com/watch?v=jtMGBsTtcVo&amp;t=11s" target="_blank">https://www.youtube.com/watch?v=jtMGBsTtcVo&amp;t=11s</a> (It's my new YouTube channel, so can you please like the video, subscribe to my channel and comment? Your comment doesn't have to be good, it can be bad or based on criticism. I like to work while criticizing and challenging myself.)<br />
<br />
<b>Discord Server for Support:</b> <a href="https://discordapp.com/invite/jr5Ywkm" target="_blank">https://discordapp.com/invite/jr5Ywkm</a> <a href="https://discord.io/ChaoticTheDev" target="_blank">https://discord.io/ChaoticTheDev</a><br />
<br />
<b>Pastebin (If you're LAZY and just want the actual thing <img alt="" border="0" class="inlineimg" src="images/smilies/rolleyes.png" title="Roll Eyes (Sarcastic)"/>)</b> <a href="https://pastebin.com/Ap0JXBZh" target="_blank">https://pastebin.com/Ap0JXBZh</a><br />
<br />
</font>]]></description>
			<content:encoded><![CDATA[<font face="Trebuchet MS"><div align="center"><img alt="" border="0" src="https://i.imgur.com/DNiML2O.png"/><br />
<b><u><font size="5">IRC (Internet Relay Chat)</font></u></b><br />
<br />
<font size="3"><b><font color="Red">WARNING</font>: If you're someone who don't like to read a lot, you can scroll to the bottom of this thread for the Pastebin link of the Filterscript. Questions concerning the filterscript will be answered in the discord server and in the comments section of this thread!</b></font></div>
<font size="5"><u><b>Introduction</b></u></font><br />
This IRC Filterscript and its simple tutorial was created for both new and old members to the field of San Andreas Multiplayer Development. It can be used for any type of gamemode, especially <b>Roleplay </b>and <b>Freeroam</b>. It's detailed with the steps to guide you on setting up the filterscript, and the functions of each part within it. Before I created this, I've looked through the present filterscripts that relates to the IRC plugin, and majority of them are too plain, while the others are spoon fed to the new developers instead of showing them what goes where, one at a time.<br />
<br />
<b><u><font size="5">Explanation of the Filterscript's Usage</font></u></b><br />
<br />
<b><u><font size="3">Step One</font></u></b><br />
First thing's first, you'll have to identify and include the plugins needed for this FS to actually work. Without them, a FS isn't a FS.<br />
<br />
With that being said, the includes which we'll be adding are <b>a_samp </b>(mandatory), <b>irc </b>(the backbone), <b>foreach </b>(to send a message to each player with a common player feature), and <b>sscanf </b>(used to split the strings).<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 82px;
		text-align: left;
		overflow: auto">#include <span style="color:#000080">&lt;a_samp&gt;</span>
#include <span style="color:#000080">&lt;irc&gt;</span>
#include <span style="color:#000080">&lt;foreach&gt;</span>
#include <span style="color:#000080">&lt;sscanf2&gt;</span></pre>
</div><b><u><font size="3">Step Two</font></u></b><br />
After the includes were identified and added to the top of the script, we'll move on to defining the <b>hostname </b>of the IRC server, the <b>port </b>attached to it, and of course, a <b>channel </b>in your IRC server for messages to be sent to, when things are done in-game.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 66px;
		text-align: left;
		overflow: auto">#define IRC_MAIN_SERVER "host.name.net"
#define IRC_PORT (1111)
#define IRC_CHANNEL "name"</pre>
</div><b><u><font size="3">Step Three</font></u></b><br />
After the IRC hostname and its affiliated resources have been defined, the color which we'll be using for sending Admin messages in-game will be <b><font color="Red">Red</font></b>, so define it:<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 34px;
		text-align: left;
		overflow: auto">#define COLOR_ADMIN   (0xFF6347FF)</pre>
</div><b><u><font size="3">Step Four</font></u></b><br />
The next thing to do is define <b>GroupID </b>and <b>BotAdmin</b>. The GroupID will be used for creating a group within the IRC server, and the BotAdmin will be used to connect your bot to the server after it's creation, and make it an Admin.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 34px;
		text-align: left;
		overflow: auto">new GroupID, BotAdmin;</pre>
</div><b><u><font size="3">Step Five</font></u></b><br />
If you're aware of how SAMP works, you should understand that <b>OnGameModeInit </b>is called when the server starts or restarts, and it is used for changes to be effective, such as mappings within the gamemode, loading data from the SQL database, and what not. This is where BotAdmin becomes beneficial, because it connects to the IRC server, using the <b>IRC_Connect</b> function, hostname from <b>IRC_MAIN_SERVER</b>, port from <b>IRC_PORT</b>, <b>nickname</b>, <b>realname</b>, and <b>username</b>.<br />
<br />
<b>NOTE:</b> The "nickname", "realname", and "username" must be changed before you compile this FS.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 146px;
		text-align: left;
		overflow: auto">public OnGameModeInit()
{
	BotAdmin = IRC_Connect(IRC_MAIN_SERVER, IRC_PORT, "nickname", "realname", "username");
	IRC_SetIntData(BotAdmin, E_IRC_CONNECT_DELAY, 5);

	GroupID = IRC_CreateGroup();
	return 1;
}</pre>
</div><b><u><font size="3">Step Six</font></u></b><br />
After this, the bot will join the defined IRC channel (<b>IRC_CHANNEL</b>) IF it's an Admin (<b>BotAdmin</b>, as identified above). If it's not an Admin bot (<b>BotAdmin</b>), it won't connect. The bot is then added to the group (<b>GroupID</b>) as well.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 162px;
		text-align: left;
		overflow: auto">public IRC_OnConnect(botid, ip[], port)
{
	if(botid == BotAdmin)
	{
		IRC_JoinChannel(botid, IRC_CHANNEL, "key");
		IRC_AddToGroup(GroupID, botid);
	}
	return 1;
}</pre>
</div><b><u><font size="3">Step Seven</font></u></b><br />
After the IRC channel is <b>disconnected </b>from the SAMP server <b>OR </b>the gamemode stops running, causing the server to stop too, it'll call this function shown below (IRC_OnDisconnect). It basically removes the bot from the group (defined by <b>GroupID</b>)<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 98px;
		text-align: left;
		overflow: auto">public IRC_OnDisconnect(botid, ip[], port, reason[])
{
	IRC_RemoveFromGroup(GroupID, botid);
	return 1;
}</pre>
</div><b><u><font size="3">Step Eight</font></u></b><br />
The next thing you'll want to do is add the <b>IRC_OnConnectAttempt </b>function. As the name says, it's called when the <b>connection is attempted</b>. This basically prints the attempt message to <b>server_log.txt</b><br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 98px;
		text-align: left;
		overflow: auto">public IRC_OnConnectAttempt(botid, ip[], port)
{
	printf("AdmWarn: IRC_OnConnectAttempt: Bot ID %d is now attempting to connect to IRC Server with Hostname (IP): %s, attached to port: %d", botid, ip, port);
	return 1;
}</pre>
</div><b><u><font size="3">Step Nine</font></u></b><br />
This function (<b>IRC_OnConnectAttemptFail</b>) below must be added to print an error message to the <b>server_log.txt</b> file if the IRC connection was attempted and unfortunately <b>failed</b>. <br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 98px;
		text-align: left;
		overflow: auto">public IRC_OnConnectAttemptFail(botid, ip[], port, reason[])
{
	printf("AdmWarn: IRC_OnConnectAttemptFail: Bot ID %d has failed to connect to IRC server with hostname (IP): %s, attached to port %d. The reason for this is %s", botid, ip, port, reason);
	return 1;
}</pre>
</div><b><u><font size="3">Step Ten</font></u></b><br />
After the gamemode stops running, and the server stops or shuts down, this common function to SAMP developers (<b>OnGameModeExit</b>) will be called. It will send a message to the channel from the bot, then destroy the group which was created earlier with (<b>GroupID</b>).<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 114px;
		text-align: left;
		overflow: auto">public OnGameModeExit()
{
	IRC_Quit(BotAdmin, "AdmWarn: The server has shut down and the gamemode will stop running.");
	IRC_DestroyGroup(GroupID);
	return 1;
}</pre>
</div><b><u><font size="3">Step Eleven</font></u></b><br />
When a player <b>connects </b> (<b>OnPlayerConnect</b>) to the server, it'll send a message to the defined IRC channel (<b>IRC_CHANNEL</b>), notifying others who are viewing the channel at the same time.<br />
<br />
<b>NOTE:</b> You'll see the new <b>ReturnName</b> and <b>SendAdminMessage</b> functions from this point onwards, but do not worry because their functions will be provided at the end of this thread.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 146px;
		text-align: left;
		overflow: auto">public OnPlayerConnect(playerid)
{
	new string[128];

	format(string, sizeof(string), "AdmWarn: Character %s (ID: %d) joined the server.", ReturnName(playerid), playerid);
	IRC_GroupSay(GroupID, IRC_CHANNEL, string);
	return 1;
}</pre>
</div><b><u><font size="3">Step Twelve</font></u></b><br />
In contrast, if a player <b>disconnects </b> (<b>OnPlayerDisconnect</b>) from the server, this function is commonly called, and as a result, the disconnect message is sent to the IRC channel.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">HTML Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 146px;
		text-align: left;
		overflow: auto">public OnPlayerDisconnect(playerid, reason)
{
	new string[200];
	
	format(string, sizeof(string), "AdmWarn: Character %s (ID: %d) disconnected from the server.", ReturnName(playerid), playerid);
	IRC_GroupSay(GroupID, IRC_CHANNEL, string);
	return 1;
}</pre>
</div><b><u><font size="3">Step Thirteen</font></u></b><br />
The <b>OnPlayerDeath</b> function is called when a player dies, and must be added to your FS afterwards. If a player is <b>killed </b>by <b>another player</b>, it sends a message to both the SAMP and IRC servers. On the other hand, if the player dies naturally, it'll state that.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 354px;
		text-align: left;
		overflow: auto">public OnPlayerDeath(playerid, killerid, reason)
{
	new string[200];
	if(killerid != INVALID_PLAYER_ID)
	{
		format(string, sizeof(string), "AdmWarn: %s (ID: %d) died (Killer: %s ID: %d).", ReturnName(playerid), playerid, ReturnName(killerid), killerid);
		SendAdminMessage(COLOR_ADMIN, string);

		format(string, sizeof(string), "AdmWarn: %s (ID: %d) died (Killer: %s ID: %d).", ReturnName(playerid), playerid, ReturnName(killerid), killerid);
		IRC_GroupSay(GroupID, IRC_CHANNEL, string);
	}
	else
	{
		format(string, sizeof(string), "AdmWarn: %s (ID: %d) died.", ReturnName(playerid), playerid);
		SendAdminMessage(COLOR_ADMIN, string);

		format(string, sizeof(string), "AdmWarn: %s (ID: %d) died.", ReturnName(playerid), playerid);
		IRC_GroupSay(GroupID, IRC_CHANNEL, string);
	}
	return 1;
}</pre>
</div><b><u><font size="3">Step Fourteen</font></u></b><br />
Similarly to how a player dies, a vehicle can be destroyed too. When a vehicle is destroyed by a player, their ID and character name can be identified by this function (<b>OnVehicleDeath</b>), and called to send a message.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 130px;
		text-align: left;
		overflow: auto">public OnVehicleDeath(vehicleid, killerid)
{
	new string[200];
	format(string, sizeof(string), "AdmWarn: Vehicle ID %d was destroyed by %s.", vehicleid, ReturnName(killerid));
	IRC_GroupSay(GroupID, IRC_CHANNEL, string);
	return 1;
}</pre>
</div><b><u><font size="3">Step Fifteen</font></u></b><br />
Remember those two things which you read about? The ReturnName and SendAdminMessage functions/stocks. Well, here they are:<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 322px;
		text-align: left;
		overflow: auto">stock ReturnName(playerid)
{
	new name[90], character[MAX_PLAYER_NAME];
	GetPlayerName(playerid, character, sizeof(character));
	name = character;
	return name;
}

stock SendAdminMessage(color, const str[])
{
	foreach(new i : Player)
	{
		if(IsPlayerAdmin(i))
		{
			SendClientMessage(i, color, str);
		}
	}
	return 1;
}</pre>
</div><b>ReturnName</b>: This stock gets the <b>actual </b>and <b>FULL </b>name which was used by the player to connect to the server, no matter what the size is (I doubt anyone would use a name which has 20+ characters), and returns it. <br />
<br />
<b>NOTE</b>: The underscore can be removed anytime, but I made this tutorial a bit simple.<br />
<br />
<b>SendAdminMessage</b>: This checks for all players who are connected to the server and are RCON Admins at the same time, then sends the message to them.<br />
<br />
<b><u><font size="3">Step Sixteen</font></u></b><br />
The Commands! (Yeap, I added two commands for you, <i>FOR NOW</i> <img alt="" border="0" class="inlineimg" src="images/smilies/cool.png" title="cool"/>)<br />
One command is used for communicating with RCON admins from IRC to in-game, while the other is used for kicking players from IRC.<br />
<br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 498px;
		text-align: left;
		overflow: auto">IRCCMD:a(botid, channel[], user[], host[], params[])
{
	if (IRC_IsOp(botid, channel, user))
	{
	    new	string[200];
	    
		if(isnull(params))
		{
                        format(string, sizeof(string), "Usage: !a [Admin Message]");
			IRC_GroupSay(GroupID, IRC_CHANNEL, string);
		}
		else
  		{
			format(string, sizeof(string), "IRC Admin: %s: %s", user, params);
			SendAdminMessage(0x6CEFF0FF, string);
		}
	}
	return 1;
}

IRCCMD:kick(botid, channel[], user[], host[], params[])
{
	if(IRC_IsOp(botid, channel, user))
	{
		new playerid, reason[64];

		if(sscanf(params, "ds[64]", playerid, reason))
		{
			IRC_Say(botid, user, "Usage: !kick [playerid] [reason]");
			return 1;
		}

		if(IsPlayerConnected(playerid))
		{
			new	string[128];

			format(string, sizeof(string), "AdmCmd: %s was kicked by %s (IRC), Reason: %s", ReturnName(playerid), user, reason);
			IRC_GroupSay(GroupID, IRC_CHANNEL, string);
			Kick(playerid);
		}
	}
	return 1;
}</pre>
</div><font size="5"><u><b>Download Links</b></u></font><br />
<b>IRC Include:</b> <a href="https://falcon-host.org/uploads/irc.rar" target="_blank">https://falcon-host.org/uploads/irc.rar</a><br />
<b>IRC Plugin:</b> <a href="https://falcon-host.org/uploads/irc-plugin.rar" target="_blank">https://falcon-host.org/uploads/irc-plugin.rar</a><br />
<br />
<b>sscanf Include:</b> <a href="https://falcon-host.org/uploads/sscanf.rar" target="_blank">https://falcon-host.org/uploads/sscanf.rar</a><br />
<b>sscanf Plugin:</b> <a href="https://falcon-host.org/uploads/sscanf-plugin.rar" target="_blank">https://falcon-host.org/uploads/sscanf-plugin.rar</a><br />
<br />
<b>foreach Include:</b> <a href="https://falcon-host.org/uploads/foreach.rar" target="_blank">https://falcon-host.org/uploads/foreach.rar</a><br />
<br />
<b>a_samp Include:</b> <a href="https://falcon-host.org/uploads/a_samp.rar" target="_blank">https://falcon-host.org/uploads/a_samp.rar</a><br />
<br />
<b>YouTube Video of what I just did:</b> <a href="https://www.youtube.com/watch?v=jtMGBsTtcVo&amp;t=11s" target="_blank">https://www.youtube.com/watch?v=jtMGBsTtcVo&amp;t=11s</a> (It's my new YouTube channel, so can you please like the video, subscribe to my channel and comment? Your comment doesn't have to be good, it can be bad or based on criticism. I like to work while criticizing and challenging myself.)<br />
<br />
<b>Discord Server for Support:</b> <a href="https://discordapp.com/invite/jr5Ywkm" target="_blank">https://discordapp.com/invite/jr5Ywkm</a> <a href="https://discord.io/ChaoticTheDev" target="_blank">https://discord.io/ChaoticTheDev</a><br />
<br />
<b>Pastebin (If you're LAZY and just want the actual thing <img alt="" border="0" class="inlineimg" src="images/smilies/rolleyes.png" title="Roll Eyes (Sarcastic)"/>)</b> <a href="https://pastebin.com/Ap0JXBZh" target="_blank">https://pastebin.com/Ap0JXBZh</a><br />
<br />
</font>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] Hyperion Mega Ship Battle]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=669917</link>
			<pubDate>Thu, 10 Oct 2019 14:14:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=255806">AbyssMorgan</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=669917</guid>
			<description><![CDATA[Hello, I would like to present you the Hyperion Mega Ship Battle.<br/><br />
It is a war of two large warships in which between 6 and 42 players can participate (21 per ship)<br />
<br />
<img alt="" border="0" src="https://cdn.discordapp.com/attachments/628121602894200832/631118355729743885/unknown.png"/><br />
<br />
<b>Video:</b><br />
<a href="https://www.youtube.com/watch?v=Ut7iBj7SRGk" target="_blank">https://www.youtube.com/watch?v=Ut7iBj7SRGk</a><br />
<br />
<b>Installation:</b><br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 498px;
		text-align: left;
		overflow: auto">
<code style="white-space:nowrap">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">#include &lt;streamer&gt;<br/>#include &lt;colandreas&gt;<br/>#include &lt;3DTryg&gt;<br/>#include &lt;Missile&gt;<br/>#include &lt;progress&gt;<br/> <br/>//#define HYPERION_START_TIME 90<br/>//#define HYPERION_VW 0<br/>#include &lt;Hyperion&gt;<br/> <br/></span><span style="color: #007700">public </span><span style="color: #0000BB">IsAllowedToJoinHyperion</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">){<br/>    <br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnHyperionPlayerDeath</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">killerid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">SendDeathMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">killerid</span><span style="color: #007700">,</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">51</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnHyperionHelpPresented</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">ShowPlayerDialog</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">DIALOG_STYLE_MSGBOX</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Mega Ship"</span><span style="color: #007700">,</span><span style="color: #DD0000">"Control:\nUse your mouse to aim\nUse LMB or Ctrl to shot"</span><span style="color: #007700">,</span><span style="color: #DD0000">"OK"</span><span style="color: #007700">,</span><span style="color: #DD0000">""</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerEnteringHyperion</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">teamid</span><span style="color: #007700">){<br/>    </span><span style="color: #FF8000">//player teleported to Hyperion Battle<br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerExitHyperion</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">){<br/>    </span><span style="color: #FF8000">//player death on hyperion or battle is finished<br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnHyperionStateChange</span><span style="color: #007700">(</span><span style="color: #0000BB">hyperion_state</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">hyperion_state</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">HYPERION_STATE_OFF</span><span style="color: #007700">: { </span><span style="color: #FF8000">//attention this state cannot call when Hyperion battle finish<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Battle cannot start due to lack of players."</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">HYPERION_STATE_STARTING</span><span style="color: #007700">: {<br/>            new </span><span style="color: #0000BB">buffer</span><span style="color: #007700">[</span><span style="color: #0000BB">128</span><span style="color: #007700">];<br/>            </span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #0000BB">buffer</span><span style="color: #007700">,</span><span style="color: #0000BB">sizeof</span><span style="color: #007700">(</span><span style="color: #0000BB">buffer</span><span style="color: #007700">),</span><span style="color: #DD0000">"Hyperion Battle will start in %d seconds."</span><span style="color: #007700">,</span><span style="color: #0000BB">HYPERION_START_TIME</span><span style="color: #007700">);<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #0000BB">buffer</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">HYPERION_STATE_ON</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Battle has been started."</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnHyperionBattleFinished</span><span style="color: #007700">(</span><span style="color: #0000BB">teamid</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">teamid</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">HYPERION_TEAM_BLUE</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Battle was finished the blue team wins."</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">HYPERION_TEAM_GREEN</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Battle was finished the green team wins."</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">HYPERION_TEAM_INTERRUPT</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Battle was interrupted due to a lack of players."</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnHyperionBattleResults</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">isdead</span><span style="color: #007700">,</span><span style="color: #0000BB">iswinner</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">iswinner</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">0</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You team lose the Hyperion Battle."</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">1</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You team win the Hyperion Battle."</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/></span><span style="color: #0000BB">CMD</span><span style="color: #007700">:</span><span style="color: #0000BB">hyperion</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">){<br/>    if(!</span><span style="color: #0000BB">CallLocalFunction</span><span style="color: #007700">(</span><span style="color: #DD0000">"IsAllowedToJoinHyperion"</span><span style="color: #007700">,</span><span style="color: #DD0000">"d"</span><span style="color: #007700">,</span><span style="color: #0000BB">playerid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>    if(</span><span style="color: #0000BB">Hyperion</span><span style="color: #007700">::</span><span style="color: #0000BB">IsPlayerSaved</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You are already queued for Hyperion Battle."</span><span style="color: #007700">);<br/>    if(</span><span style="color: #0000BB">Hyperion</span><span style="color: #007700">::</span><span style="color: #0000BB">CountPlayers</span><span style="color: #007700">() &gt;= </span><span style="color: #0000BB">HYPERION_MAX_QUEUE</span><span style="color: #007700">) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Queue for Hyperion Battle is already full."</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Hyperion</span><span style="color: #007700">::</span><span style="color: #0000BB">SavePlayer</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You have signed up for Hyperion Battle Queue."</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/></span><span style="color: #0000BB">CMD</span><span style="color: #007700">:</span><span style="color: #0000BB">hyperionexit</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">){<br/>    if(!</span><span style="color: #0000BB">Hyperion</span><span style="color: #007700">::</span><span style="color: #0000BB">IsPlayerSaved</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You are not queued for Hyperion Battle."</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Hyperion</span><span style="color: #007700">::</span><span style="color: #0000BB">SavePlayer</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">false</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You left the Hyperion Battle queue."</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>} <br/></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</code>
</div>
</div><b>Download:</b><br />
<a href="http://adm.ct8.pl/d/Hyperion.inc" target="_blank">Hyperion.inc</a><br />
<a href="http://adm.ct8.pl/d/3DTryg.inc" target="_blank">3DTryg.inc</a> <a href="https://adm.ct8.pl/r/3DTryg" target="_blank"><font color="#003D00"><b>Thread</b></font></a><br />
<a href="http://adm.ct8.pl/d/Missile.inc" target="_blank">Missile.inc</a> <a href="https://adm.ct8.pl/r/Missile" target="_blank"><font color="#003D00"><b>Thread</b></font></a><br />
<a href="https://pastebin.com/8pv7LCPv" target="_blank">progress.inc</a><br />
<a href="https://github.com/Pottus/ColAndreas/releases" target="_blank">ColAndreas Plugin</a><br />
<br />
<i><b>Notice:</b><br/><br />
Filterscript not exist because filterscripts have <b>limits.</b><br/><br />
This has been replaced by include, having <b>automatic installation</b>, efficient GameMode/FilterScript.</i><br />
<br />
<i><b>Non-Registered Users:</b><br />
<a href="http://adm.ct8.pl/report/?title=Hyperion%20Bug" target="_blank">Bug Report</a></i>]]></description>
			<content:encoded><![CDATA[Hello, I would like to present you the Hyperion Mega Ship Battle.<br/><br />
It is a war of two large warships in which between 6 and 42 players can participate (21 per ship)<br />
<br />
<img alt="" border="0" src="https://cdn.discordapp.com/attachments/628121602894200832/631118355729743885/unknown.png"/><br />
<br />
<b>Video:</b><br />
<a href="https://www.youtube.com/watch?v=Ut7iBj7SRGk" target="_blank">https://www.youtube.com/watch?v=Ut7iBj7SRGk</a><br />
<br />
<b>Installation:</b><br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 498px;
		text-align: left;
		overflow: auto">
<code style="white-space:nowrap">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">#include &lt;streamer&gt;<br/>#include &lt;colandreas&gt;<br/>#include &lt;3DTryg&gt;<br/>#include &lt;Missile&gt;<br/>#include &lt;progress&gt;<br/> <br/>//#define HYPERION_START_TIME 90<br/>//#define HYPERION_VW 0<br/>#include &lt;Hyperion&gt;<br/> <br/></span><span style="color: #007700">public </span><span style="color: #0000BB">IsAllowedToJoinHyperion</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">){<br/>    <br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnHyperionPlayerDeath</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">killerid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">SendDeathMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">killerid</span><span style="color: #007700">,</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">51</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnHyperionHelpPresented</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">ShowPlayerDialog</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">DIALOG_STYLE_MSGBOX</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Mega Ship"</span><span style="color: #007700">,</span><span style="color: #DD0000">"Control:\nUse your mouse to aim\nUse LMB or Ctrl to shot"</span><span style="color: #007700">,</span><span style="color: #DD0000">"OK"</span><span style="color: #007700">,</span><span style="color: #DD0000">""</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerEnteringHyperion</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">teamid</span><span style="color: #007700">){<br/>    </span><span style="color: #FF8000">//player teleported to Hyperion Battle<br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerExitHyperion</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">){<br/>    </span><span style="color: #FF8000">//player death on hyperion or battle is finished<br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnHyperionStateChange</span><span style="color: #007700">(</span><span style="color: #0000BB">hyperion_state</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">hyperion_state</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">HYPERION_STATE_OFF</span><span style="color: #007700">: { </span><span style="color: #FF8000">//attention this state cannot call when Hyperion battle finish<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Battle cannot start due to lack of players."</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">HYPERION_STATE_STARTING</span><span style="color: #007700">: {<br/>            new </span><span style="color: #0000BB">buffer</span><span style="color: #007700">[</span><span style="color: #0000BB">128</span><span style="color: #007700">];<br/>            </span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #0000BB">buffer</span><span style="color: #007700">,</span><span style="color: #0000BB">sizeof</span><span style="color: #007700">(</span><span style="color: #0000BB">buffer</span><span style="color: #007700">),</span><span style="color: #DD0000">"Hyperion Battle will start in %d seconds."</span><span style="color: #007700">,</span><span style="color: #0000BB">HYPERION_START_TIME</span><span style="color: #007700">);<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #0000BB">buffer</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">HYPERION_STATE_ON</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Battle has been started."</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnHyperionBattleFinished</span><span style="color: #007700">(</span><span style="color: #0000BB">teamid</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">teamid</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">HYPERION_TEAM_BLUE</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Battle was finished the blue team wins."</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">HYPERION_TEAM_GREEN</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Battle was finished the green team wins."</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">HYPERION_TEAM_INTERRUPT</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessageToAll</span><span style="color: #007700">(</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Hyperion Battle was interrupted due to a lack of players."</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnHyperionBattleResults</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">isdead</span><span style="color: #007700">,</span><span style="color: #0000BB">iswinner</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">iswinner</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">0</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You team lose the Hyperion Battle."</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">1</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You team win the Hyperion Battle."</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/></span><span style="color: #0000BB">CMD</span><span style="color: #007700">:</span><span style="color: #0000BB">hyperion</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">){<br/>    if(!</span><span style="color: #0000BB">CallLocalFunction</span><span style="color: #007700">(</span><span style="color: #DD0000">"IsAllowedToJoinHyperion"</span><span style="color: #007700">,</span><span style="color: #DD0000">"d"</span><span style="color: #007700">,</span><span style="color: #0000BB">playerid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>    if(</span><span style="color: #0000BB">Hyperion</span><span style="color: #007700">::</span><span style="color: #0000BB">IsPlayerSaved</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You are already queued for Hyperion Battle."</span><span style="color: #007700">);<br/>    if(</span><span style="color: #0000BB">Hyperion</span><span style="color: #007700">::</span><span style="color: #0000BB">CountPlayers</span><span style="color: #007700">() &gt;= </span><span style="color: #0000BB">HYPERION_MAX_QUEUE</span><span style="color: #007700">) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Queue for Hyperion Battle is already full."</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Hyperion</span><span style="color: #007700">::</span><span style="color: #0000BB">SavePlayer</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You have signed up for Hyperion Battle Queue."</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/></span><span style="color: #0000BB">CMD</span><span style="color: #007700">:</span><span style="color: #0000BB">hyperionexit</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">){<br/>    if(!</span><span style="color: #0000BB">Hyperion</span><span style="color: #007700">::</span><span style="color: #0000BB">IsPlayerSaved</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You are not queued for Hyperion Battle."</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Hyperion</span><span style="color: #007700">::</span><span style="color: #0000BB">SavePlayer</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">false</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You left the Hyperion Battle queue."</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>} <br/></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</code>
</div>
</div><b>Download:</b><br />
<a href="http://adm.ct8.pl/d/Hyperion.inc" target="_blank">Hyperion.inc</a><br />
<a href="http://adm.ct8.pl/d/3DTryg.inc" target="_blank">3DTryg.inc</a> <a href="https://adm.ct8.pl/r/3DTryg" target="_blank"><font color="#003D00"><b>Thread</b></font></a><br />
<a href="http://adm.ct8.pl/d/Missile.inc" target="_blank">Missile.inc</a> <a href="https://adm.ct8.pl/r/Missile" target="_blank"><font color="#003D00"><b>Thread</b></font></a><br />
<a href="https://pastebin.com/8pv7LCPv" target="_blank">progress.inc</a><br />
<a href="https://github.com/Pottus/ColAndreas/releases" target="_blank">ColAndreas Plugin</a><br />
<br />
<i><b>Notice:</b><br/><br />
Filterscript not exist because filterscripts have <b>limits.</b><br/><br />
This has been replaced by include, having <b>automatic installation</b>, efficient GameMode/FilterScript.</i><br />
<br />
<i><b>Non-Registered Users:</b><br />
<a href="http://adm.ct8.pl/report/?title=Hyperion%20Bug" target="_blank">Bug Report</a></i>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] Faction Mini Missions]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=669652</link>
			<pubDate>Sat, 28 Sep 2019 13:47:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=255806">AbyssMorgan</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=669652</guid>
			<description><![CDATA[Hello, I would like to present you the Faction Mini Missions.<br />
<br />
<b>Video:</b><br />
<a href="https://www.youtube.com/watch?v=uMpS2SaWmB0" target="_blank">https://www.youtube.com/watch?v=uMpS2SaWmB0</a><br />
<br />
<b>Example Code:</b><br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 498px;
		text-align: left;
		overflow: auto">
<code style="white-space:nowrap">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">public </span><span style="color: #0000BB">OnPlayerEnterPatrol</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">GetPlayerTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">) == </span><span style="color: #0000BB">TEAM_POLICEMAN</span><span style="color: #007700">) return </span><span style="color: #0000BB">1</span><span style="color: #007700">; </span><span style="color: #FF8000">//policeman clear unsafe zone <br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #FF8000">//player get robbed<br/></span><span style="color: #007700">}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerDestroyPatrol</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    </span><span style="color: #FF8000">//give mission prize<br/>    </span><span style="color: #0000BB">GivePlayerMoney</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">100</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerRobbed</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">,</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">MISSIONS_STATE_FAIL_ROBBERY</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"The thief stumbled and you managed to escape :)"</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">MISSIONS_STATE_ROBBED</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You lose &#36;100 by robbers"</span><span style="color: #007700">);<br/>            </span><span style="color: #0000BB">GivePlayerMoney</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,-</span><span style="color: #0000BB">100</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerFoundCorpse</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">GetPlayerTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">) == </span><span style="color: #0000BB">TEAM_MEDIC</span><span style="color: #007700">) return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>    return </span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #FF8000">//player able hit corpse (if in vehicle)<br/></span><span style="color: #007700">}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerHitCorpse</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You hit corpse by vehicle, you got mandate &#36;100"</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">GivePlayerMoney</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,-</span><span style="color: #0000BB">100</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerHealCorpse</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">GetPlayerTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">) == </span><span style="color: #0000BB">TEAM_MEDIC</span><span style="color: #007700">){<br/>        </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You healed the corpse"</span><span style="color: #007700">);<br/>        return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>    }<br/>    return </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerFoundScrap</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">GetPlayerTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">) == </span><span style="color: #0000BB">TEAM_METAL_SCRAPPER</span><span style="color: #007700">) return </span><span style="color: #0000BB">1</span><span style="color: #007700">; </span><span style="color: #FF8000">//player able to pickup Scrap (Only for vehicle 578)<br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerTakeScrap</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">,</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">,</span><span style="color: #0000BB">count_items</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">MISSIONS_SCRAP_FULL</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Your vehicle cargo is full"</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">MISSIONS_SCRAP_LOADED</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You picked up scrap metal"</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerExceededSpeed</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">speed</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">max_speed</span><span style="color: #007700">){<br/>    new </span><span style="color: #0000BB">buffer</span><span style="color: #007700">[</span><span style="color: #0000BB">256</span><span style="color: #007700">];<br/>    </span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #0000BB">buffer</span><span style="color: #007700">,</span><span style="color: #0000BB">sizeof</span><span style="color: #007700">(</span><span style="color: #0000BB">buffer</span><span style="color: #007700">),</span><span style="color: #DD0000">"You exceeded the maximum speed %.1f mph you were driving %.1f mph"</span><span style="color: #007700">,</span><span style="color: #0000BB">max_speed</span><span style="color: #007700">,</span><span style="color: #0000BB">speed</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #0000BB">buffer</span><span style="color: #007700">);<br/>    </span><span style="color: #FF8000">//mandate or something :D<br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerPutOutFire</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You put out fire"</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerVehicleDamagedByRoad</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">,</span><span style="color: #0000BB">old_health</span><span style="color: #007700">,</span><span style="color: #0000BB">new_health</span><span style="color: #007700">,</span><span style="color: #0000BB">veh_damage</span><span style="color: #007700">){<br/> <br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerDestroyedTreeOnRoad</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You destroyed tree on road"</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerUnloadingScrap</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">count_items</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">Item</span><span style="color: #007700">::</span><span style="color: #0000BB">InCircle</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">item_player</span><span style="color: #007700">,</span><span style="color: #0000BB">0.0</span><span style="color: #007700">,</span><span style="color: #0000BB">0.0</span><span style="color: #007700">,</span><span style="color: #0000BB">10.0</span><span style="color: #007700">)){<br/>        </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You unloading scrap"</span><span style="color: #007700">);<br/>        return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>    }<br/>    return </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerTryDisarmBomb</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">GetPlayerTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">) == </span><span style="color: #0000BB">TEAM_ARMY</span><span style="color: #007700">) return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>    return </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerDisarmBomb</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">,</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">MISSIONS_BOMB_DISARM_FAIL</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Failed to disarm bomb !!!"</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">MISSIONS_BOMB_DISARM_SUCCESS</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Bomb disarmed"</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">MISSIONS_BOMB_DISARM_TOO_LATE</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Is too late to disarm bomb !!!"</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerFixedRoad</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Road fixed"</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnGameModeInit</span><span style="color: #007700">(){<br/>    <br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsScrapKey</span><span style="color: #007700">(</span><span style="color: #0000BB">KEY_YES</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsCorpseKey</span><span style="color: #007700">(</span><span style="color: #0000BB">KEY_YES</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsBombKey</span><span style="color: #007700">(</span><span style="color: #0000BB">KEY_YES</span><span style="color: #007700">);<br/> <br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_BOMB</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_WOOD</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_SCRAP</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_CORPSE</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_DMGROUTE</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_FIRE</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_PATROL</span><span style="color: #007700">);<br/>    <br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_BOMB</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_CORPSE</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_FIRE</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_WOOD</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_SCRAP</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_DMGROUTE</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_PATROL</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    <br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Generate</span><span style="color: #007700">(); </span><span style="color: #FF8000">//force mission generate after server restart<br/>    <br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/></span><span style="color: #0000BB">CMD</span><span style="color: #007700">:</span><span style="color: #0000BB">speedcamera_del</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">params</span><span style="color: #007700">[]){<br/>    if(</span><span style="color: #0000BB">IsPlayerInAnyVehicle</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Leave vehicle"</span><span style="color: #007700">);<br/>    new </span><span style="color: #0000BB">mobid</span><span style="color: #007700">;<br/>    if(</span><span style="color: #0000BB">sscanf</span><span style="color: #007700">(</span><span style="color: #0000BB">params</span><span style="color: #007700">,</span><span style="color: #DD0000">"d"</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Usage /speedcamera_del &lt;id&gt;"</span><span style="color: #007700">);<br/>    if(</span><span style="color: #0000BB">mobid </span><span style="color: #007700">&lt; </span><span style="color: #0000BB">0 </span><span style="color: #007700">|| </span><span style="color: #0000BB">mobid </span><span style="color: #007700">&gt;= </span><span style="color: #0000BB">MISSIONS_MAX_RADAR</span><span style="color: #007700">) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Wrong speed camera ID (0 - 99)"</span><span style="color: #007700">);<br/>    if(!</span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">RadarData</span><span style="color: #007700">[</span><span style="color: #0000BB">mobid</span><span style="color: #007700">][</span><span style="color: #0000BB">f_active</span><span style="color: #007700">]) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Speed camera is not active"</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">DestroyRadar</span><span style="color: #007700">(</span><span style="color: #0000BB">mobid</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Speed camera deleted"</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/></span><span style="color: #0000BB">CMD</span><span style="color: #007700">:</span><span style="color: #0000BB">speedcamera_add</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">params</span><span style="color: #007700">[]){<br/>    if(</span><span style="color: #0000BB">IsPlayerInAnyVehicle</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Leave vehicle"</span><span style="color: #007700">);<br/>    new </span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">speed</span><span style="color: #007700">;<br/>    if(</span><span style="color: #0000BB">sscanf</span><span style="color: #007700">(</span><span style="color: #0000BB">params</span><span style="color: #007700">,</span><span style="color: #DD0000">"f"</span><span style="color: #007700">,</span><span style="color: #0000BB">speed</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Używaj /speedcamera_add &lt;max_speed&gt;"</span><span style="color: #007700">);<br/>    new </span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">x</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">z</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">z_angle</span><span style="color: #007700">;<br/>    </span><span style="color: #0000BB">GetPlayerPos</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">x</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">z</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">GetPointInFrontOfPlayer</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">x</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">1.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">GetPlayerFacingAngle</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">z_angle</span><span style="color: #007700">);<br/>    if(</span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">CreateRadar</span><span style="color: #007700">(</span><span style="color: #0000BB">x</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">z</span><span style="color: #007700">,</span><span style="color: #0000BB">z_angle</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">speed</span><span style="color: #007700">)){<br/>        </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Speed camera added"</span><span style="color: #007700">);<br/>        </span><span style="color: #0000BB">ApplyAnimation</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #DD0000">"BOMBER"</span><span style="color: #007700">,</span><span style="color: #DD0000">"BOM_Plant"</span><span style="color: #007700">,</span><span style="color: #0000BB">4.1</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br/>    } else {<br/>        </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Unable to add speed camera (limit exceeded)"</span><span style="color: #007700">);<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>} <br/></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</code>
</div>
</div><b>Functions:</b><br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 178px;
		text-align: left;
		overflow: auto">
<code style="white-space:nowrap">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsScrapKey</span><span style="color: #007700">(</span><span style="color: #0000BB">key</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsCorpseKey</span><span style="color: #007700">(</span><span style="color: #0000BB">key</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsBombKey</span><span style="color: #007700">(</span><span style="color: #0000BB">key</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">CountVehicleScrap</span><span style="color: #007700">(</span><span style="color: #0000BB">vehicleid</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">DropScrap</span><span style="color: #007700">(</span><span style="color: #0000BB">vehicleid</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">HealCorpse</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">CreateRadar</span><span style="color: #007700">(</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">x</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">z</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">rz</span><span style="color: #007700">,</span><span style="color: #0000BB">worldid</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">interiorid</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">speed</span><span style="color: #007700">=</span><span style="color: #0000BB">80.0</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">DestroyRadar</span><span style="color: #007700">(</span><span style="color: #0000BB">mobid</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">mission_type</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">minx</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">miny</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">maxx</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">maxy</span><span style="color: #007700">,</span><span style="color: #0000BB">bool</span><span style="color: #007700">:</span><span style="color: #0000BB">spawn_validation</span><span style="color: #007700">=</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnPolygon</span><span style="color: #007700">(</span><span style="color: #0000BB">mission_type</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">points</span><span style="color: #007700">[],</span><span style="color: #0000BB">maxpoints</span><span style="color: #007700">=</span><span style="color: #0000BB">sizeof</span><span style="color: #007700">(</span><span style="color: #0000BB">points</span><span style="color: #007700">),</span><span style="color: #0000BB">bool</span><span style="color: #007700">:</span><span style="color: #0000BB">spawn_validation</span><span style="color: #007700">=</span><span style="color: #0000BB">true</span><span style="color: #007700">); <br/></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</code>
</div>
</div><b>Download:</b><br />
<a href="http://adm.ct8.pl/d/Missions.inc" target="_blank">Missions.inc</a><br />
<a href="http://adm.ct8.pl/d/route_rand.inc" target="_blank">route_rand.inc</a><br />
<a href="http://adm.ct8.pl/d/route_rand.bin" target="_blank">route_rand.bin</a> (put in /scriptfiles)<br />
<a href="http://adm.ct8.pl/d/3DTryg.inc" target="_blank">3DTryg.inc</a> <a href="https://adm.ct8.pl/r/3DTryg" target="_blank"><font color="#003D00"><b>Thread</b></font></a><br />
<a href="https://github.com/Pottus/ColAndreas/releases" target="_blank">ColAndreas Plugin</a><br />
<br />
<i><b>Notice:</b><br/><br />
Filterscript not exist because filterscripts have <b>limits.</b><br/><br />
This has been replaced by include, having <b>automatic installation</b>, efficient GameMode/FilterScript.</i><br />
<br />
<i><b>Non-Registered Users:</b><br />
<a href="http://adm.ct8.pl/report/?title=Missions%20Bug" target="_blank">Bug Report</a></i>]]></description>
			<content:encoded><![CDATA[Hello, I would like to present you the Faction Mini Missions.<br />
<br />
<b>Video:</b><br />
<a href="https://www.youtube.com/watch?v=uMpS2SaWmB0" target="_blank">https://www.youtube.com/watch?v=uMpS2SaWmB0</a><br />
<br />
<b>Example Code:</b><br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 498px;
		text-align: left;
		overflow: auto">
<code style="white-space:nowrap">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">public </span><span style="color: #0000BB">OnPlayerEnterPatrol</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">GetPlayerTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">) == </span><span style="color: #0000BB">TEAM_POLICEMAN</span><span style="color: #007700">) return </span><span style="color: #0000BB">1</span><span style="color: #007700">; </span><span style="color: #FF8000">//policeman clear unsafe zone <br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #FF8000">//player get robbed<br/></span><span style="color: #007700">}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerDestroyPatrol</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    </span><span style="color: #FF8000">//give mission prize<br/>    </span><span style="color: #0000BB">GivePlayerMoney</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">100</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerRobbed</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">,</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">MISSIONS_STATE_FAIL_ROBBERY</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"The thief stumbled and you managed to escape :)"</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">MISSIONS_STATE_ROBBED</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You lose &#36;100 by robbers"</span><span style="color: #007700">);<br/>            </span><span style="color: #0000BB">GivePlayerMoney</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,-</span><span style="color: #0000BB">100</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerFoundCorpse</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">GetPlayerTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">) == </span><span style="color: #0000BB">TEAM_MEDIC</span><span style="color: #007700">) return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>    return </span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #FF8000">//player able hit corpse (if in vehicle)<br/></span><span style="color: #007700">}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerHitCorpse</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You hit corpse by vehicle, you got mandate &#36;100"</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">GivePlayerMoney</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,-</span><span style="color: #0000BB">100</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerHealCorpse</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">GetPlayerTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">) == </span><span style="color: #0000BB">TEAM_MEDIC</span><span style="color: #007700">){<br/>        </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You healed the corpse"</span><span style="color: #007700">);<br/>        return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>    }<br/>    return </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerFoundScrap</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">GetPlayerTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">) == </span><span style="color: #0000BB">TEAM_METAL_SCRAPPER</span><span style="color: #007700">) return </span><span style="color: #0000BB">1</span><span style="color: #007700">; </span><span style="color: #FF8000">//player able to pickup Scrap (Only for vehicle 578)<br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerTakeScrap</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">,</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">,</span><span style="color: #0000BB">count_items</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">MISSIONS_SCRAP_FULL</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Your vehicle cargo is full"</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">MISSIONS_SCRAP_LOADED</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You picked up scrap metal"</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerExceededSpeed</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">speed</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">max_speed</span><span style="color: #007700">){<br/>    new </span><span style="color: #0000BB">buffer</span><span style="color: #007700">[</span><span style="color: #0000BB">256</span><span style="color: #007700">];<br/>    </span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #0000BB">buffer</span><span style="color: #007700">,</span><span style="color: #0000BB">sizeof</span><span style="color: #007700">(</span><span style="color: #0000BB">buffer</span><span style="color: #007700">),</span><span style="color: #DD0000">"You exceeded the maximum speed %.1f mph you were driving %.1f mph"</span><span style="color: #007700">,</span><span style="color: #0000BB">max_speed</span><span style="color: #007700">,</span><span style="color: #0000BB">speed</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #0000BB">buffer</span><span style="color: #007700">);<br/>    </span><span style="color: #FF8000">//mandate or something :D<br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerPutOutFire</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You put out fire"</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerVehicleDamagedByRoad</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">,</span><span style="color: #0000BB">old_health</span><span style="color: #007700">,</span><span style="color: #0000BB">new_health</span><span style="color: #007700">,</span><span style="color: #0000BB">veh_damage</span><span style="color: #007700">){<br/> <br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerDestroyedTreeOnRoad</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You destroyed tree on road"</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerUnloadingScrap</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">count_items</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">Item</span><span style="color: #007700">::</span><span style="color: #0000BB">InCircle</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">item_player</span><span style="color: #007700">,</span><span style="color: #0000BB">0.0</span><span style="color: #007700">,</span><span style="color: #0000BB">0.0</span><span style="color: #007700">,</span><span style="color: #0000BB">10.0</span><span style="color: #007700">)){<br/>        </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"You unloading scrap"</span><span style="color: #007700">);<br/>        return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>    }<br/>    return </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerTryDisarmBomb</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    if(</span><span style="color: #0000BB">GetPlayerTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">) == </span><span style="color: #0000BB">TEAM_ARMY</span><span style="color: #007700">) return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>    return </span><span style="color: #0000BB">0</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerDisarmBomb</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">,</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">){<br/>    switch(</span><span style="color: #0000BB">mission_state</span><span style="color: #007700">){<br/>        case </span><span style="color: #0000BB">MISSIONS_BOMB_DISARM_FAIL</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Failed to disarm bomb !!!"</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">MISSIONS_BOMB_DISARM_SUCCESS</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Bomb disarmed"</span><span style="color: #007700">);<br/>        }<br/>        case </span><span style="color: #0000BB">MISSIONS_BOMB_DISARM_TOO_LATE</span><span style="color: #007700">: {<br/>            </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Is too late to disarm bomb !!!"</span><span style="color: #007700">);<br/>        }<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnPlayerFixedRoad</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">){<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Road fixed"</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/>public </span><span style="color: #0000BB">OnGameModeInit</span><span style="color: #007700">(){<br/>    <br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsScrapKey</span><span style="color: #007700">(</span><span style="color: #0000BB">KEY_YES</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsCorpseKey</span><span style="color: #007700">(</span><span style="color: #0000BB">KEY_YES</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsBombKey</span><span style="color: #007700">(</span><span style="color: #0000BB">KEY_YES</span><span style="color: #007700">);<br/> <br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_BOMB</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_WOOD</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_SCRAP</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_CORPSE</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_DMGROUTE</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_FIRE</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Enable</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_PATROL</span><span style="color: #007700">);<br/>    <br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_BOMB</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_CORPSE</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_FIRE</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_WOOD</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_SCRAP</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_DMGROUTE</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">MISSIONS_TYPE_PATROL</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,-</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">,</span><span style="color: #0000BB">3000.0</span><span style="color: #007700">);<br/>    <br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">Generate</span><span style="color: #007700">(); </span><span style="color: #FF8000">//force mission generate after server restart<br/>    <br/>    </span><span style="color: #007700">return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/></span><span style="color: #0000BB">CMD</span><span style="color: #007700">:</span><span style="color: #0000BB">speedcamera_del</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">params</span><span style="color: #007700">[]){<br/>    if(</span><span style="color: #0000BB">IsPlayerInAnyVehicle</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Leave vehicle"</span><span style="color: #007700">);<br/>    new </span><span style="color: #0000BB">mobid</span><span style="color: #007700">;<br/>    if(</span><span style="color: #0000BB">sscanf</span><span style="color: #007700">(</span><span style="color: #0000BB">params</span><span style="color: #007700">,</span><span style="color: #DD0000">"d"</span><span style="color: #007700">,</span><span style="color: #0000BB">mobid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Usage /speedcamera_del &lt;id&gt;"</span><span style="color: #007700">);<br/>    if(</span><span style="color: #0000BB">mobid </span><span style="color: #007700">&lt; </span><span style="color: #0000BB">0 </span><span style="color: #007700">|| </span><span style="color: #0000BB">mobid </span><span style="color: #007700">&gt;= </span><span style="color: #0000BB">MISSIONS_MAX_RADAR</span><span style="color: #007700">) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Wrong speed camera ID (0 - 99)"</span><span style="color: #007700">);<br/>    if(!</span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">RadarData</span><span style="color: #007700">[</span><span style="color: #0000BB">mobid</span><span style="color: #007700">][</span><span style="color: #0000BB">f_active</span><span style="color: #007700">]) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Speed camera is not active"</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">DestroyRadar</span><span style="color: #007700">(</span><span style="color: #0000BB">mobid</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Speed camera deleted"</span><span style="color: #007700">);<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>}<br/> <br/></span><span style="color: #0000BB">CMD</span><span style="color: #007700">:</span><span style="color: #0000BB">speedcamera_add</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">params</span><span style="color: #007700">[]){<br/>    if(</span><span style="color: #0000BB">IsPlayerInAnyVehicle</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Leave vehicle"</span><span style="color: #007700">);<br/>    new </span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">speed</span><span style="color: #007700">;<br/>    if(</span><span style="color: #0000BB">sscanf</span><span style="color: #007700">(</span><span style="color: #0000BB">params</span><span style="color: #007700">,</span><span style="color: #DD0000">"f"</span><span style="color: #007700">,</span><span style="color: #0000BB">speed</span><span style="color: #007700">)) return </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Używaj /speedcamera_add &lt;max_speed&gt;"</span><span style="color: #007700">);<br/>    new </span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">x</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">z</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">z_angle</span><span style="color: #007700">;<br/>    </span><span style="color: #0000BB">GetPlayerPos</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">x</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">z</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">GetPointInFrontOfPlayer</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">x</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">1.0</span><span style="color: #007700">);<br/>    </span><span style="color: #0000BB">GetPlayerFacingAngle</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">z_angle</span><span style="color: #007700">);<br/>    if(</span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">CreateRadar</span><span style="color: #007700">(</span><span style="color: #0000BB">x</span><span style="color: #007700">,</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">z</span><span style="color: #007700">,</span><span style="color: #0000BB">z_angle</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">speed</span><span style="color: #007700">)){<br/>        </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Speed camera added"</span><span style="color: #007700">);<br/>        </span><span style="color: #0000BB">ApplyAnimation</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #DD0000">"BOMBER"</span><span style="color: #007700">,</span><span style="color: #DD0000">"BOM_Plant"</span><span style="color: #007700">,</span><span style="color: #0000BB">4.1</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br/>    } else {<br/>        </span><span style="color: #0000BB">SendClientMessage</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">,</span><span style="color: #0000BB">0xFFFFFFFF</span><span style="color: #007700">,</span><span style="color: #DD0000">"Unable to add speed camera (limit exceeded)"</span><span style="color: #007700">);<br/>    }<br/>    return </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br/>} <br/></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</code>
</div>
</div><b>Functions:</b><br />
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px solid #C2C2C2;
		width: 800px;
		height: 178px;
		text-align: left;
		overflow: auto">
<code style="white-space:nowrap">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsScrapKey</span><span style="color: #007700">(</span><span style="color: #0000BB">key</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsCorpseKey</span><span style="color: #007700">(</span><span style="color: #0000BB">key</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetMissionsBombKey</span><span style="color: #007700">(</span><span style="color: #0000BB">key</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">CountVehicleScrap</span><span style="color: #007700">(</span><span style="color: #0000BB">vehicleid</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">DropScrap</span><span style="color: #007700">(</span><span style="color: #0000BB">vehicleid</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">HealCorpse</span><span style="color: #007700">(</span><span style="color: #0000BB">playerid</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">CreateRadar</span><span style="color: #007700">(</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">x</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">y</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">z</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">rz</span><span style="color: #007700">,</span><span style="color: #0000BB">worldid</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">interiorid</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">speed</span><span style="color: #007700">=</span><span style="color: #0000BB">80.0</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">DestroyRadar</span><span style="color: #007700">(</span><span style="color: #0000BB">mobid</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnRectangle</span><span style="color: #007700">(</span><span style="color: #0000BB">mission_type</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">minx</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">miny</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">maxx</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">maxy</span><span style="color: #007700">,</span><span style="color: #0000BB">bool</span><span style="color: #007700">:</span><span style="color: #0000BB">spawn_validation</span><span style="color: #007700">=</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br/></span><span style="color: #0000BB">Missions</span><span style="color: #007700">::</span><span style="color: #0000BB">SetSpawnPolygon</span><span style="color: #007700">(</span><span style="color: #0000BB">mission_type</span><span style="color: #007700">,</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">points</span><span style="color: #007700">[],</span><span style="color: #0000BB">maxpoints</span><span style="color: #007700">=</span><span style="color: #0000BB">sizeof</span><span style="color: #007700">(</span><span style="color: #0000BB">points</span><span style="color: #007700">),</span><span style="color: #0000BB">bool</span><span style="color: #007700">:</span><span style="color: #0000BB">spawn_validation</span><span style="color: #007700">=</span><span style="color: #0000BB">true</span><span style="color: #007700">); <br/></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</code>
</div>
</div><b>Download:</b><br />
<a href="http://adm.ct8.pl/d/Missions.inc" target="_blank">Missions.inc</a><br />
<a href="http://adm.ct8.pl/d/route_rand.inc" target="_blank">route_rand.inc</a><br />
<a href="http://adm.ct8.pl/d/route_rand.bin" target="_blank">route_rand.bin</a> (put in /scriptfiles)<br />
<a href="http://adm.ct8.pl/d/3DTryg.inc" target="_blank">3DTryg.inc</a> <a href="https://adm.ct8.pl/r/3DTryg" target="_blank"><font color="#003D00"><b>Thread</b></font></a><br />
<a href="https://github.com/Pottus/ColAndreas/releases" target="_blank">ColAndreas Plugin</a><br />
<br />
<i><b>Notice:</b><br/><br />
Filterscript not exist because filterscripts have <b>limits.</b><br/><br />
This has been replaced by include, having <b>automatic installation</b>, efficient GameMode/FilterScript.</i><br />
<br />
<i><b>Non-Registered Users:</b><br />
<a href="http://adm.ct8.pl/report/?title=Missions%20Bug" target="_blank">Bug Report</a></i>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] Lucky7 System.]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=665745</link>
			<pubDate>Sun, 14 Apr 2019 15:26:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=264607">Bolex_</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=665745</guid>
			<description><![CDATA[<div align="center"><img alt="" border="0" src="https://i.imgur.com/BRIEiur.png"/><br />
A very interesting and beautiful made system, no need to explain what it is, look at the video. (Click on image and you'll know what to write instead of *******)<br />
Credits: Kristall<br />
<br />
<a href="https://www.youtube.com/watch?v=YoR3hwFeSdg" target="_blank"><img alt="" border="0" src="https://i.imgur.com/VANH18W.png"/></a><br />
<br />
Download<br />
<a href="https://gist.github.com/RobertNITU/80587f2cc89e4e8719c3cb24b5b88933" target="_blank">https://gist.github.com/RobertNITU/8...c3cb24b5b88933</a></div>]]></description>
			<content:encoded><![CDATA[<div align="center"><img alt="" border="0" src="https://i.imgur.com/BRIEiur.png"/><br />
A very interesting and beautiful made system, no need to explain what it is, look at the video. (Click on image and you'll know what to write instead of *******)<br />
Credits: Kristall<br />
<br />
<a href="https://www.youtube.com/watch?v=YoR3hwFeSdg" target="_blank"><img alt="" border="0" src="https://i.imgur.com/VANH18W.png"/></a><br />
<br />
Download<br />
<a href="https://gist.github.com/RobertNITU/80587f2cc89e4e8719c3cb24b5b88933" target="_blank">https://gist.github.com/RobertNITU/8...c3cb24b5b88933</a></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[FilterScript] GPS Bullet v0.9]]></title>
			<link>https://sampforum.blast.hk/showthread.php?tid=665533</link>
			<pubDate>Sun, 07 Apr 2019 22:04:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://sampforum.blast.hk/member.php?action=profile&uid=266938">MicroKyrr</a>]]></dc:creator>
			<guid isPermaLink="false">https://sampforum.blast.hk/showthread.php?tid=665533</guid>
			<description><![CDATA[<div align="center"><font size="6"><b><font color="darkorange"><u>G</u></font>PS <font color="DarkOrange"><u>B</u></font>ullet 0.9</b></font><br />
By Jiizutin Kiru (MicroKyrr)</div>
This is my second FS, I'm certain there are inefficient codes I've written. I went back to scripting a week ago (I left SA:MP in 2016) and saw the opportunity to make this. Criticism is much appreciated<br />
<br />
<font face="Verdana"><font size="6"><u><font color="DarkOrange"><b>D</b></font></u></font>escription</font><br />
The title says it all, GPS bullet. This is made for Law Enforcers to be used. Just shoot someone and you'll be able to track them within the remaining battery life. (Default is 120 minutes or 2 hours) the only command here is /gpsb<br />
<br />
** You can choose two weapons for your GPS bullet, sniper or silenced pistol.<br />
** You can display/hide the bullet position and the battery information.<br />
* Bullet on Vehicle soon &gt;&gt;&gt; (( REFERENCE : censored <img alt="" border="0" class="inlineimg" src="images/smilies/rolleyes.gif" title="rolleyes"/> /watch?v=qmqHrgKI1ak ))<br />
<br />
<font face="Verdana"><font size="6"><u><font color="DarkOrange"><b>D</b></font></u></font>ependencies</font><br />
<br />
<a href="https://sampforum.blast.hk/showthread.php?tid=537468" target="_blank">https://sampforum.blast.hk/showthread.php?tid=537468</a> // Progress2 by Southclaw<br />
<a href="https://sampforum.blast.hk/showthread.php?tid=91354" target="_blank">https://sampforum.blast.hk/showthread.php?tid=91354</a> // Zcmd by Zeex (or Yasha's izcmd)<br />
<br />
<font face="Verdana"><font size="6"><u><font color="DarkOrange"><b>T</b></font></u></font>hanks</font><br />
<br />
SA:MP Team <br />
Bork (Infin1ty) for the code optimization<br />
Southclaw for his progress include<br />
Zeex for the Zcmd processor<br />
<br />
<font face="Verdana"><font size="6"><u><font color="DarkOrange"><b>D</b></font></u></font>ownload : <font size="6"><a href="https://github.com/Kiiruuu/GPSBullet" target="_blank">Github</a></font></font>]]></description>
			<content:encoded><![CDATA[<div align="center"><font size="6"><b><font color="darkorange"><u>G</u></font>PS <font color="DarkOrange"><u>B</u></font>ullet 0.9</b></font><br />
By Jiizutin Kiru (MicroKyrr)</div>
This is my second FS, I'm certain there are inefficient codes I've written. I went back to scripting a week ago (I left SA:MP in 2016) and saw the opportunity to make this. Criticism is much appreciated<br />
<br />
<font face="Verdana"><font size="6"><u><font color="DarkOrange"><b>D</b></font></u></font>escription</font><br />
The title says it all, GPS bullet. This is made for Law Enforcers to be used. Just shoot someone and you'll be able to track them within the remaining battery life. (Default is 120 minutes or 2 hours) the only command here is /gpsb<br />
<br />
** You can choose two weapons for your GPS bullet, sniper or silenced pistol.<br />
** You can display/hide the bullet position and the battery information.<br />
* Bullet on Vehicle soon &gt;&gt;&gt; (( REFERENCE : censored <img alt="" border="0" class="inlineimg" src="images/smilies/rolleyes.gif" title="rolleyes"/> /watch?v=qmqHrgKI1ak ))<br />
<br />
<font face="Verdana"><font size="6"><u><font color="DarkOrange"><b>D</b></font></u></font>ependencies</font><br />
<br />
<a href="https://sampforum.blast.hk/showthread.php?tid=537468" target="_blank">https://sampforum.blast.hk/showthread.php?tid=537468</a> // Progress2 by Southclaw<br />
<a href="https://sampforum.blast.hk/showthread.php?tid=91354" target="_blank">https://sampforum.blast.hk/showthread.php?tid=91354</a> // Zcmd by Zeex (or Yasha's izcmd)<br />
<br />
<font face="Verdana"><font size="6"><u><font color="DarkOrange"><b>T</b></font></u></font>hanks</font><br />
<br />
SA:MP Team <br />
Bork (Infin1ty) for the code optimization<br />
Southclaw for his progress include<br />
Zeex for the Zcmd processor<br />
<br />
<font face="Verdana"><font size="6"><u><font color="DarkOrange"><b>D</b></font></u></font>ownload : <font size="6"><a href="https://github.com/Kiiruuu/GPSBullet" target="_blank">Github</a></font></font>]]></content:encoded>
		</item>
	</channel>
</rss>