18.10.2013, 16:32
(
Последний раз редактировалось hayha12; 19.10.2013 в 12:11.
)
Код:
/*=====================================================================================*/ // .: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
Hospital filterscripts made by hayha
With Hospital Interior built by me
==================== [ Hospital ] ========================

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

==================== [ Toilet ] ========================

================================================== =========================
==================== [ 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;
}
Код:
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;
}
Код:
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 ... -
-----------------------------------------------------------------------------------------------------------/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 !
this is the first thing i post on SAMP forum
i hope you like it !
---------------------------------------------------------------------------------------------------
http://th3gamers.net/lkteam/


