[Help]Anti Hack
#1

Код:
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 ];
	GetWeaponName( weaponid, WeaponName, sizeof( WeaponName ) );

	format( String, sizeof( String ), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be weapon hacking (%s).", GetPlayerName(playerid), playerid, WeaponName);
	ABroadCast( COLOR_YELLOW, String, 2 );
	format(String, sizeof(String), "%s (ID %d) may possibly be weapon hacking (%s)", GetPlayerName(playerid), playerid, WeaponName);
	new logstring[256];
	BanLog(logstring);
	return 1;
}
I copied it from another similar GM to mine and kept fixing it till i got no errors but 97 warnings of arguments that doesn't match, all of them at GetPlayerName, it was originally GetPlayerNameEx, but it kept saying undefined symbol GetPlayerNameEx, even though the GM where I took it from didn't define it

The Code is just a part of the anti cheat, 2 warning at it, the 2 GetPlayerName.

HELP PLEASE!!
Reply


Messages In This Thread
[Help]Anti Hack - by alainchaccour - 17.09.2011, 16:56
Re: [Help]Anti Hack - by Xyrex - 17.09.2011, 17:00
Re: [Help]Anti Hack - by alainchaccour - 17.09.2011, 17:10
Re: [Help]Anti Hack - by Xyrex - 17.09.2011, 17:12
Re: [Help]Anti Hack - by alainchaccour - 17.09.2011, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)