19.09.2016, 02:29
(
Последний раз редактировалось thienle7090; 19.09.2016 в 03:59.
Причина: dadaxzgsgsdsdgsgsgsdgsg
)
Delete ......................
if(dialogid == BENHVIENMAU)
{
if(response)
{
if(listitem == 0)
{
if((PlayerInfo[playerid][pCash] <20000)) {
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban khфng du tiкn dк su dung dich vu nay.");
}
else {
new Float:health;
GetPlayerHealth(playerid, health);
new hpint = floatround( health, floatround_round );
if( hpint >= 35 )
{
SendClientMessageEx(playerid, COLOR_GREY, "Sъc khoe cua ban rвt tфt khфng nкn dung dich vu nаy nua!.");
return 1;
}
else {
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 20.0)
{
SetPlayerHealth(playerid, 35.0);
GivePlayerMoney(playerid, -20000);
SendClientMessageEx(playerid, COLOR_GREY, "Ban dг duoc hфi phuc.!");
}
return 1;
}
}
}
if(listitem == 1) //
{
if((PlayerInfo[playerid][pCash] <30000)) {
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban khфng du tiкn dк su dung dich vu nay.");
}
else {
new Float:health;
GetPlayerHealth(playerid, health);
new hpint = floatround( health, floatround_round );
if( hpint >= 50 )
{
SendClientMessageEx(playerid, COLOR_GREY, "Sъc khoe cua ban rвt tфt khфng nкn dung dich vu nаy nua!.");
return 1;
}
else {
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 45.0)
{
SetPlayerHealth(playerid, 50.0);
SendClientMessageEx(playerid, COLOR_GREY, "Ban dг duoc hфi phuc.!");
}
return 1;
}
}
}
if(listitem ==2) //
{
if((PlayerInfo[playerid][pCash] <45000)) {
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban khфng du tiкn dк su dung dich vu nay.");
}
else {
new Float:health;
GetPlayerHealth(playerid, health);
new hpint = floatround( health, floatround_round );
if( hpint >= 95 )
{
SendClientMessageEx(playerid, COLOR_GREY, "Sъc khoe cua ban rвt tфt khфng nкn dung dich vu nаy nua!.");
return 1;
}
else {
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 95.0)
{
SetPlayerHealth(playerid, 100.0);
SendClientMessageEx(playerid, COLOR_GREY, "Ban dг duoc hфi phuc.!");
}
return 1;
}
}
}
if(listitem ==3) //
{
if((PlayerInfo[playerid][pCash] <85000)) {
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban khфng du tiкn dк su dung dich vu nay.");
}
else {
new Float:health;
GetPlayerHealth(playerid, health);
new hpint = floatround( health, floatround_round );
if( hpint >= 95 )
{
SendClientMessageEx(playerid, COLOR_GREY, "Sъc khoe cua ban rвt tфt khфng nкn dung dich vu nаy nua!.");
return 1;
}
else {
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 95.0)
{
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 50.0);
SendClientMessageEx(playerid, COLOR_GREY, "Ban dг duoc hфi phuc.!");
}
return 1;
}
}
}
}
}
if(dialogid == BENHVIENMAU)
{
if(response)
{
if(listitem == 0)
{
if((PlayerInfo[playerid][pCash] <20000))
{
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban khфng du tiкn dк su dung dich vu nay.");
}
else
{
new Float:health;
GetPlayerHealth(playerid, health);
new hpint = floatround( health, floatround_round );
if( hpint >= 35 )
{
SendClientMessageEx(playerid, COLOR_GREY, "Sъc khoe cua ban rвt tфt khфng nкn dung dich vu nаy nua!.");
return 1;
}
else
{
if (health < 20.0)
{
SetPlayerHealth(playerid, 35.0);
GivePlayerMoney(playerid, -20000);
SendClientMessageEx(playerid, COLOR_GREY, "Ban dг duoc hфi phuc.!");
}
return 1;
}
}
}
if(listitem == 1) //
{
if((PlayerInfo[playerid][pCash] <30000))
{
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban khфng du tiкn dк su dung dich vu nay.");
return 1;
}
else
{
new Float:health;
GetPlayerHealth(playerid, health);
new hpint = floatround( health, floatround_round );
if( hpint >= 50 )
{
SendClientMessageEx(playerid, COLOR_GREY, "Sъc khoe cua ban rвt tфt khфng nкn dung dich vu nаy nua!.");
return 1;
}
else
{
if (health < 45.0)
{
SetPlayerHealth(playerid, 50.0);
SendClientMessageEx(playerid, COLOR_GREY, "Ban dг duoc hфi phuc.!");
}
return 1;
}
}
}
if(listitem ==2) //
{
if((PlayerInfo[playerid][pCash] <45000))
{
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban khфng du tiкn dк su dung dich vu nay.");
return 1;
}
else
{
new Float:health;
GetPlayerHealth(playerid, health);
new hpint = floatround( health, floatround_round );
if( hpint >= 95 )
{
SendClientMessageEx(playerid, COLOR_GREY, "Sъc khoe cua ban rвt tфt khфng nкn dung dich vu nаy nua!.");
return 1;
}
else
{
if (health < 95.0)
{
SetPlayerHealth(playerid, 100.0);
SendClientMessageEx(playerid, COLOR_GREY, "Ban dг duoc hфi phuc.!");
}
return 1;
}
}
}
if(listitem ==3) //
{
if((PlayerInfo[playerid][pCash] <85000))
{
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban khфng du tiкn dк su dung dich vu nay.");
return 1;
}
else
{
new Float:health;
GetPlayerHealth(playerid, health);
new hpint = floatround( health, floatround_round );
if( hpint >= 95 )
{
SendClientMessageEx(playerid, COLOR_GREY, "Sъc khoe cua ban rвt tфt khфng nкn dung dich vu nаy nua!.");
return 1;
}
else
{
if (health < 95.0)
{
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 50.0);
SendClientMessageEx(playerid, COLOR_GREY, "Ban dг duoc hфi phuc.!");
}
return 1;
}
}
}
}
}