26.04.2014, 08:18
Put a variable?
at the top
when they type the command just add it under GivePlayerWeapon for each command
and for the check put
Or something like that
pawn Код:
new HasVipWeapons[MAX_PLAYERS];
pawn Код:
HasVipWeapons[playerid] = 1;
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);
}