Anti health hack problem
#3

You didn't understand me, before the spawn protection disappears, I accidently fall to the ground, and after spawn protection disappear, it kicks me, if i didn't fall, nothing will happen.

Code:
pawn Код:
forward Spawnprotect(playerid);
public Spawnprotect(playerid)
{
    SetPlayerHealth(playerid, 99);
    Spawnprotection[playerid] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, -1, "You are now no longer under spawn protection.");
    GameTextForPlayer(playerid, "~r~Spawn Protection Off", 3000, 4);
    if(Info[playerid][VIPLevel] >= 1)
    {
    GivePlayerWeapon(playerid, 5, 500);
    GivePlayerWeapon(playerid, 24, 500);
    GivePlayerWeapon(playerid, 27, 200);
    GivePlayerWeapon(playerid, 29, 1000);
    GivePlayerWeapon(playerid, 30, 1000);
    SendClientMessage(playerid, -1, "You Have Got 2x Ammo Of Weapons For Being VIP.");
    }
    else
    {
    GivePlayerWeapon(playerid, 5, 250);
    GivePlayerWeapon(playerid, 24, 250);
    GivePlayerWeapon(playerid, 27, 100);
    GivePlayerWeapon(playerid, 29, 500);
    GivePlayerWeapon(playerid, 30, 500);
    }
}
Reply


Messages In This Thread
Anti health hack problem - by Youssef221 - 30.01.2015, 21:59
Re: Anti health hack problem - by CalvinC - 30.01.2015, 22:10
Re: Anti health hack problem - by Youssef221 - 30.01.2015, 22:12
Re: Anti health hack problem - by Threshold - 31.01.2015, 01:34

Forum Jump:


Users browsing this thread: 1 Guest(s)