Zeror_Dalglish
13.06.2014, 18:20
CMD:healme(playerid)
{
if(PlayerInfo[playerid][pHealme] == 0) return SendClientMessage(playerid,COLOR_GRAD, "Ó Âàñ íåò àïòå÷êè!");
SetPlayerChatBubble(playerid, "+ 60 HP", 0x0099FFAA, 10.0, 2000);
GameTextForPlayer(playerid, "~b~+ 60 hp", 1000, 1);
SendClientMessage(playerid,0x0099FFAA, "Âû èñïîëüçîâàëè àïòå÷êó! Âàøå çäîðîâüå ïîïîëíåíî.");
PlayerInfo[playerid][pHealme] -= 1;
SetPlayerHealth(playerid, 100);
ApplyAnimation(playerid,"ped","gum_eat",4.0,0,0,0,0,0,1);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPVarFloat(playerid, "X", x);
Sbiv_timer[playerid] = SetTimerEx("Check_sbiv", 3500, true, "d", playerid);
return true;
}
forward Check_sbiv(playerid);
public Check_sbiv(playerid)
{
#define position_on GetPVarFloat(playerid, "X")
#define position_two GetPVarFloat(playerid, "X1")
new Float:x1, Float:y1, Float:z1;
GetPlayerPos(playerid, x1, y1, z1);
SetPVarFloat(playerid, "X1", x1),SetPVarFloat(playerid, "Y1", y1),SetPVarFloat(playerid, "Z1", z1);
if(position_on != position_two) return
SendClientMessage(playerid,RIFA_COLOR,"[Античит] Игрок вы были отправлены в КПЗ. Причина: сбив анимки. (Betta)");
#undef position_on
#undef position_two
DeletePVar(playerid, "X1");
DeletePVar(playerid, "Y1");
DeletePVar(playerid, "Z1");
KillTimer(Sbiv_timer[playerid]);
return 1;
}
{
if(PlayerInfo[playerid][pHealme] == 0) return SendClientMessage(playerid,COLOR_GRAD, "Ó Âàñ íåò àïòå÷êè!");
SetPlayerChatBubble(playerid, "+ 60 HP", 0x0099FFAA, 10.0, 2000);
GameTextForPlayer(playerid, "~b~+ 60 hp", 1000, 1);
SendClientMessage(playerid,0x0099FFAA, "Âû èñïîëüçîâàëè àïòå÷êó! Âàøå çäîðîâüå ïîïîëíåíî.");
PlayerInfo[playerid][pHealme] -= 1;
SetPlayerHealth(playerid, 100);
ApplyAnimation(playerid,"ped","gum_eat",4.0,0,0,0,0,0,1);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPVarFloat(playerid, "X", x);
Sbiv_timer[playerid] = SetTimerEx("Check_sbiv", 3500, true, "d", playerid);
return true;
}
forward Check_sbiv(playerid);
public Check_sbiv(playerid)
{
#define position_on GetPVarFloat(playerid, "X")
#define position_two GetPVarFloat(playerid, "X1")
new Float:x1, Float:y1, Float:z1;
GetPlayerPos(playerid, x1, y1, z1);
SetPVarFloat(playerid, "X1", x1),SetPVarFloat(playerid, "Y1", y1),SetPVarFloat(playerid, "Z1", z1);
if(position_on != position_two) return
SendClientMessage(playerid,RIFA_COLOR,"[Античит] Игрок вы были отправлены в КПЗ. Причина: сбив анимки. (Betta)");
#undef position_on
#undef position_two
DeletePVar(playerid, "X1");
DeletePVar(playerid, "Y1");
DeletePVar(playerid, "Z1");
KillTimer(Sbiv_timer[playerid]);
return 1;
}