[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
#2

Ur first Fs! Nice and good!
Reply
#3

I'd say that's definitely good for your first filterscript .
Reply
#4

strange, it's your first post.
On Topic: Nice.
Reply
#5

The map is not made by you.
Reply
#6

Nope i made the map i swear and also its not my first filterscript i made a lot of things like needs system bank system and more and also i made a TDM server gamemode but this is my first post here
Reply
#7

Quote:
Originally Posted by Wizzy951
Посмотреть сообщение
The map is not made by you.
He didn't say he mapped it...
Reply
#8

Its easy to script, but well done.
Reply
#9

i know its easy to script but this just my first post
Reply
#10

WoW As ur First FS Rlly Nice
Reply
#11

Wow Nice I Gona Use This! Nice Work Man! I Like It!
Reply
#12

its not my first FS its my first post not my first FS ...
Reply
#13

http://th3gamers.net/lkteam/
Reply
#14

Well I Know To it is not your frist FS
Reply
#15

Really good bro

REP +
Reply
#16

Quote:
Originally Posted by hayha12
Посмотреть сообщение
Nope i made the map i swear and also its not my first filterscript i made a lot of things like needs system bank system and more and also i made a TDM server gamemode but this is my first post here
Ok, then it's my bad. It just reminded me for one hospital interior used in a lot of RP servers.
Reply
#17

no problem bro did you try it ?
Reply
#18

Quote:
Originally Posted by hayha12
Посмотреть сообщение
no problem bro did you try it ?
Yes I did and I'm experiencing the problem with the not working dialogs i.e. dialog ID conflicts. So I can't use /healme , but I will fix it. Anyway awesome work.
Reply
#19

no it works but only next to health pickup
here look :
Код:
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;
	}
Reply
#20

Quote:
Originally Posted by hayha12
Посмотреть сообщение
no it works but only next to health pickup
here look :
Код:
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;
	}
I meant that when I click on yes nothing happens because of that conflict.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)