[FilterScript] Hospital Filtelscript
#1

Код:
/*=====================================================================================*/
//                                  .:xxxxxxxx:.                                       ||
//-                              .xxxxxxxxxxxxxxxx.                                    ||
//-                             :xxxxxxxxxxxxxxxxxxx:.                                 ||
//-                            .xxxxxxxxxxxxxxxxxxxxxxx:                               ||
//-                           :xxxxxxxxxxxxxxxxxxxxxxxxx:                              ||
//-                           xxxxxxxxxxxxxxxxxxxxxxxxxxX:                             ||
//-                           xxx:::xxxxxxxx::::xxxxxxxxx:                             ||
//-                          .xx:   ::xxxxx:     :xxxxxxxx                             ||
//-                          :xx  x.  xxxx:  xx.  xxxxxxxx                             ||
//-                          :xx xxx  xxxx: xxxx  :xxxxxxx                             ||
//-                          'xx 'xx  xxxx:. xx'  xxxxxxxx                             ||
//-                           xx ::::::xx:::::.   xxxxxxxx                             ||
//-                           xx:::::.::::.:::::::xxxxxxxx                             ||
//-                           :x'::::'::::':::::':xxxxxxxx                             ||
//-                               ::::::::::::'                                        ||
//-                                '::::::::'                                          ||
//-                                  '::::'                                            ||
//                                Made by hayha ©                                    ||
//---------------------------------------------------------------------------------------
//                         website : www.th3gamers.net                                 ||
//---------------------------------------------------------------------------------------
Contact me : http://th3gamers.net/lkteam/lkcontact/
or by sending me an email at yahya@aklidata.com
Hello,
Hospital filterscripts made by hayha
With Hospital Interior built by me
==================== [ Hospital ] ========================

==================== [ Hospital interior ] ========================

==================== [ Toilet ] ========================
================================================== =========================
with Dynamic Pickups so you can add more if you want ( health pickup/Toilet Pickup)
Код:
Createtoiletpickup(Float:x, Float:y, Float:z)
{
	for (new i; i < sizeof(AtoiletPickups); i++)
	{
		if (!IsValidDynamicPickup(AtoiletPickups[i][PickupID]))
		{
			AtoiletPickups[i][PickupID] = CreateDynamicPickup(1239, 1, x, y, z, 0);
			AtoiletPickups[i][pux] = x;
			AtoiletPickups[i][puy] = y;
			AtoiletPickups[i][puz] = z;

			CreateDynamic3DTextLabel("use /piss", 0xF0E68CFF, x, y, z, 7.0);
			break;
		}
	}
}
Createhealthpickup(Float:x, Float:y, Float:z)
{
	for (new i; i < sizeof(AhealthPickups); i++)
	{
		if (!IsValidDynamicPickup(AhealthPickups[i][PickupID]))
		{
			AhealthPickups[i][PickupID] = CreateDynamicPickup(1240, 1, x, y, z, 0);
			AhealthPickups[i][pux] = x;
			AhealthPickups[i][puy] = y;
			AhealthPickups[i][puz] = z;

			CreateDynamic3DTextLabel("use /healme", 0xF0E68CFF, x, y, z, 7.0);
			break;
		}
	}
}
Код:
Public OnGameModeInit()
{
        ......
       //The way to create an other pickup: Createtoiletpickup(Float:X , Float:Y , Float:Z)

	Createtoiletpickup(-214.07, 1587.06, 289.63);
	Createtoiletpickup(-210.12, 1586.47, 289.63);
	
	//The way to create an other pickup: Createhealthpickup(Float:x, Float:y, Float:z)
	
	Createhealthpickup(-211.91, 1609.13, 289.63);
	Createhealthpickup(-221.07, 1600.92, 289.63);
	Createhealthpickup(-238.17, 1607.38, 289.63);
	Createhealthpickup(-233.15, 158.34, 289.63);
        return 1;
}
and also command which can be used only on pickup range of point
Код:
	if (strcmp("/healme", cmdtext, true, 10) == 0)
	{
		for (new i; i < sizeof(AhealthPickups); i++)
		{
			if (IsValidDynamicPickup(AhealthPickups[i][PickupID]))
   			{
				if(IsPlayerInRangeOfPoint(playerid, 5.0, AhealthPickups[i][pux], AhealthPickups[i][puy], AhealthPickups[i][puz]))
				{
					ShowPlayerDialog(playerid, 348, DIALOG_STYLE_MSGBOX, "buy health:", "do you want to buy a drug for 300$", "yes", "No");
				}
			}
		}
		return 1;
	}
and also when you write heal or hospitalon main chat a bot will answer you

Код:
	if (strfind(text, "hospital") != -1)
	{
    	new strings[280], name[MAX_PLAYER_NAME];
    	GetPlayerName(playerid, name, sizeof(name));
    	format(strings, sizeof(strings), "{99cc00}** HayHospital: {ffcc66}Hi %s, if you need health go to LosSantos Hospital ", name);
    	SendClientMessageToAll(0x000000ff, strings);
	}
	if (strfind(text, "heal") != -1)
	{
    	new strings[280], name[MAX_PLAYER_NAME];
    	GetPlayerName(playerid, name, sizeof(name));
    	format(strings, sizeof(strings), "{99cc00}** HayHospital: {ffcc66}Hi %s, if you need health go to LosSantos Hospital ", name);
    	SendClientMessageToAll(0x000000ff, strings);
	}
-----------------------------------------------------------------------------------------------------------
Command: /healme ( you can use it only on the health pickup )
/piss ( and this command too, you can use it only in toilet )
- Notice: if you already have a piss command on your server change /piss to /pee or anything else ... -
-----------------------------------------------------------------------------------------------------------


Download Link : http://www.solidfiles.com/d/d0b5cf24a7/
this is the first thing i post on SAMP forum
i hope you like it !
and this is not my first FS its my first post not my first FS

---------------------------------------------------------------------------------------------------
http://th3gamers.net/lkteam/
Reply


Messages In This Thread
Hospital Filtelscript - by hayha12 - 18.10.2013, 16:32
Re: Hospital Filtelscript - by Ninad - 18.10.2013, 16:36
Re: Hospital Filtelscript - by DanishHaq - 18.10.2013, 16:39
Re: Hospital Filtelscript - by xF4Life - 18.10.2013, 16:41
Re: Hospital Filtelscript - by Wizzy951 - 18.10.2013, 16:42
Re: Hospital Filtelscript - by hayha12 - 18.10.2013, 16:44
Re: Hospital Filtelscript - by Kindred - 18.10.2013, 16:45
AW: Hospital Filtelscript - by HellYeah - 18.10.2013, 16:50
Re: Hospital Filtelscript - by hayha12 - 18.10.2013, 16:52
Re: Hospital Filtelscript - by Meow22 - 18.10.2013, 18:37
Re: Hospital Filtelscript - by Xtream - 18.10.2013, 19:01
Re: Hospital Filtelscript - by hayha12 - 18.10.2013, 19:28
Re: Hospital Filtelscript - by hayha12 - 18.10.2013, 19:32
Re: Hospital Filtelscript - by Xtream - 18.10.2013, 19:59
Re: Hospital Filtelscript - by SRB - 18.10.2013, 21:26
Re: Hospital Filtelscript - by Wizzy951 - 18.10.2013, 21:59
Re: Hospital Filtelscript - by hayha12 - 18.10.2013, 22:11
Re: Hospital Filtelscript - by Wizzy951 - 18.10.2013, 22:13
Re: Hospital Filtelscript - by hayha12 - 18.10.2013, 22:16
Re: Hospital Filtelscript - by Wizzy951 - 18.10.2013, 22:19
Re: Hospital Filtelscript - by Alphlax - 26.12.2013, 03:22
Re: Hospital Filtelscript - by Zeddclarity - 23.09.2014, 15:22

Forum Jump:


Users browsing this thread: 3 Guest(s)