16.07.2013, 19:03
Second, this is the code:
pawn Код:
ExecuteHackerAction( playerid, weaponid )
{
if(!gPlayerLogged(playerid)) return 1;
if(PlayerInfo[playerid][pTut] == 0) return 1;
if(playerTabbed[playerid] == 1) return 1;
if(GetPVarInt(playerid, "IsInArena") >= 0) return 1;
new String[128], WeaponName[128];
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);
format(String, sizeof(String), "%s (ID %d) may possibly be weapon hacking (%s)", GetPlayerNameEx(playerid), playerid, WeaponName);
Log("logs/hack.log", String);
return 1;
}