Weapon Hacking :|
#2

Put a variable?

pawn Код:
new HasVipWeapons[MAX_PLAYERS];
at the top

pawn Код:
HasVipWeapons[playerid] = 1;
when they type the command just add it under GivePlayerWeapon for each command

and for the check put
pawn Код:
if(HasVipWeapons[playerid] == 0)
{
    new String[ 128 ], WeaponName[ 128 ];
    GetWeaponName(weaponid, WeaponName, sizeof(WeaponName));

    format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be weapon hacking (%s).", GetPlayerNameEx(playerid), playerid, WeaponName);
    ABroadCast(COLOR_YELLOW, String, 2);

    SetPVarInt(playerid, "wpH", GetPVarInt(playerid, "wpH")+1);

    if(GetPVarInt(playerid, "wpH") >= 3)
    {
        format(String, sizeof(String), "%s may possibly be weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
        AddAutomatedFlag(playerid, String);
    }

    //format(String, sizeof(String), "%s (ID %d) may possibly be weapon hacking (%s)", GetPlayerNameEx(playerid), playerid, WeaponName);
    //Log("logs/hack.log", String);
}
Or something like that
Reply


Messages In This Thread
Weapon Hacking :| - by Yasubo - 26.04.2014, 08:04
Re: Weapon Hacking :| - by itsCody - 26.04.2014, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)