What's up here?
#5

Since the player will be kicked, just reset the variable to 0:
pawn Код:
public OnPlayerUpdate(playerid)
{
    if(hInfo[playerid][MoneyHackWarn] == 3)
    {
        new str[128], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, 24);
        format(str, sizeof(str), "%s Has been kicked for Money Hacks", name);
        SendClientMessageToAll(-1, str);
        SetTimerEx("KickTimer", 1000, false, "d", playerid);
        hInfo[playerid][MoneyHackWarn] = 0; // Reset the variables
        return 1;
    }
    if(hInfo[playerid][WeaponHackWarn] == 3)
    {
        new str[128], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, 24);
        format(str, sizeof(str), "%s Has been kicked for Weapon hacks", name);
        SendClientMessageToAll(-1, str);
        SetTimerEx("KickTimer", 1000, false, "d", playerid);
        hInfo[playerid][WeaponHackWarn] = 0; // Reset the variables
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
What's up here? - by LeXuZ - 05.12.2014, 18:22
Re: What's up here? - by iFiras - 05.12.2014, 18:33
Re: What's up here? - by LeXuZ - 05.12.2014, 18:34
Re: What's up here? - by iFiras - 05.12.2014, 18:52
Re: What's up here? - by PowerPC603 - 05.12.2014, 18:54
Re: What's up here? - by LeXuZ - 05.12.2014, 19:04
Re: What's up here? - by HY - 05.12.2014, 19:04
Re: What's up here? - by Vince - 05.12.2014, 19:25
Re: What's up here? - by LeXuZ - 05.12.2014, 19:30
Re: What's up here? - by LeXuZ - 05.12.2014, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)