/*=====================================================================================*/ // .: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



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);
}
.
I Like It!
|
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
|
did you try it ?
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;
}
|
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;
}
|