11.08.2009, 16:52
is there a standalone antiweapon hack .inc anywhere I searched but found none.
Originally Posted by Memoryz
Just get Junkbuster, but disable the health,teleport, and other features.
|
new WeaponData[13][2], str[128];
for(new i = 0; i < MAX_PLAYERS; i++) {
for(new a = 0; a < 13; a++) {
GetPlayerWeaponData(i, a, WeaponData[a][0], WeaponData[a][1]);
if(WeaponData[a][0] == 39 || WeaponData[a][0] == 38 || WeaponData[a][0] == 38 || WeaponData[a][0] == 37 || WeaponData[a][0] == 36 || WeaponData[a][0] == 35 || WeaponData[a][0] == 41 || WeaponData[a][0] == 42 || WeaponData[a][0] == 43 || WeaponData[a][0] == 44 || WeaponData[a][0] == 45){
format(str,128,"* %s has been banned from the server: Weaponhacks",PlayerName(i));
SendClientMessageToALL(COLOR, str);
Ban(i);
}
}
}
stock PlayerName(playerid) { new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); return Name; }
how do I configure it with my GivePlayerWeapon from deathmatches and my admin systemQuote:
Originally Posted by ιMσик3уI've made a code for you, just put it in some timer and thats it.pawn Code:new WeaponData[13][2], str[128];for(new i = 0; i < MAX_PLAYERS; i++) { for(new a = 0; a < 13; a++) { GetPlayerWeaponData(i, a, WeaponData[a][0], WeaponData[a][1]); if(WeaponData[a][0] == 39 || WeaponData[a][0] == 38 || WeaponData[a][0] == 38 || WeaponData[a][0] == 37 || WeaponData[a][0] == 36 || WeaponData[a][0] == 35 || WeaponData[a][0] == 41 || WeaponData[a][0] == 42 || WeaponData[a][0] == 43 || WeaponData[a][0] == 44 || WeaponData[a][0] == 45){ format(str,128,"* %s has been banned from the server: Weaponhacks",PlayerName(i)); SendClientMessageToALL(COLOR, str); Ban(i); } }}Code:stock PlayerName(playerid) { new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); return Name; }
Quote:
Originally Posted by [SUBP13 ] how do I configure it with my GivePlayerWeapon from deathmatches and my admin system
Originally Posted by [SU
|
Originally Posted by [SU
BP13 ]
well I don't. and why should I already know this, I don't speak pawno. |