[FilterScript] Simple Healing System
#1

Simple Healing System

Hello, my name is Phantom and today I'm releasing my first Filterscript, a Simple Healing System.
The Code
Код:
//Filterscript made by: Juan Viz [Phantom]
//Feel free to Edit, use, delete or add things to the code, just dont delete the credits.
//Dividing bar
#include <a_samp>
#include <zcmd>
//Color Defines
#define COLOR_GREEN 0x008000FF
#define COLOR_BLUE 0x0000FFFF
#define COLOR_BRIGHTRED 0xFF000AAA
#define COLOR_AQUA 0x00FFFFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_BEIGE 0xFFF8DCAA
#define COLOR_BLACK 0x000000AA
#define COLOR_LIGHTERBLUE 0x00BFFFAA
#define COLOR_BLUELIGHT 0x1E90FFAA
#define COLOR_BLUEMEDIUM 0x0000CDAA
#define COLOR_BLUEDARK 0x00008BAA
#define COLOR_PINK 0xFF1493AA
#define COLOR_PINKDARK 0xFF00FFAA
#define COLOR_GREENLIGHT 0x00FF00AA
#define COLOR_GREENDARK 0x006400AA
#define COLOR_MAROON 0x800000AA
#define COLOR_OKER 0x808000AA
#define COLOR_ORANGE 0xFF4500AA
#define COLOR_ORANGELIGHT 0xFF8C00AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_VIOLETDARK 0x9400D3AA
#define COLOR_INDIGO 0xAB0082AA
#define COLOR_RED 0xFF0000AA
#define COLOR_SAND 0xFFDEADAA
#define COLOR_SILVER 0xC0C0C0AA
#define COLOR_TEAL 0x008080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_GOLD 0xFFD700AA
#define COLOR_BROWN 0x8B4513AA
#define COLOR_BROWNLIGHT 0xA0522DAA
#define COLOR_GRAY 0xA9A9A9AA
#define COLOR_GRAYDARK 0x696969AA
#define COLOR_INVISIBLE 0xFFFFFF00
//Color Defines
CMD:Healinghelp(playerid,params[])
{
	SendClientMessage(playerid,COLOR_RED,"To refill your armour use /Armourme and to refill your health use /healme, you have to pay 1000 For each one");
	return 1;
}
//Dividing Bar
CMD:healme(playerid,params[])
{
	SendClientMessage(playerid,COLOR_RED,"You have refilled your health");
	SetPlayerHealth(playerid,100);
	GivePlayerMoney(playerid,-1000);
	SendClientMessage(playerid,COLOR_BLUE,"Use /healinghelp for more information about this system");
	return 1;
}
//Diving Bar
CMD:armourme(playerid,params[])
{
	SendClientMessage(playerid,COLOR_RED,"You have refilled your armour");
	SetPlayerArmour(playerid,100);
	GivePlayerMoney(playerid,-1000);
	SendClientMessage(playerid,COLOR_BLUE,"Use /healinghelp for more information about this sytem");
	return 1;
}
//Hope you like it!
Credits: Phantom[Me] For making the Filterscript.
ZeexFor creating Zcmd

Finally if you want to download it just "Click Here!"

PS: Pictures are not needed, its just a simple healing system.
Reply
#2

You' should organize the coding alittle bit more better. I personally like it though.
Reply
#3

Quote:
Originally Posted by Akira297
Посмотреть сообщение
You' should organize the coding alittle bit more better. I personally like it though.
What you mean with Organize it better?
Reply
#4

My first FS btw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)