23.06.2012, 17:58
Uhm why don't you test it by yourself (In-game)? I mean maybe those people lie. Anyway I checked it and here's what it (probably) does (I explained everything in comments):
pawn Код:
// assuming that the public Guns is forwared and called by a timer probably
public Guns()
{
for(new i;i<MAX_PLAYERS;i++) // loops through all the players
{
if(!IsPlayerAdmin(i)) // checks if the player isn't admin
{
// he/she isn't admin
new WeData[13][2]; // this line and the line below gets the data of the player's weapons
GetPlayerWeaponData(i, 7, WeData[7][0], WeData[7][1]); // ^
// The line below checks if he/she has a Satchel Charge, Minigun, Minigun (Again dunno why you repeated it), Flamethrower, HS Rocket or RPG
if(WeData[7][0] == 39 || WeData[7][0] == 38 || WeData[7][0] == 38 || WeData[7][0] == 37 || WeData[7][0] == 36 || WeData[7][0] == 35)
{
// here he/she has any of the weapons mentioned above
//SendClientMessageToAllLang(82,0xFF0000FF,Player(i));
SendClientMessage(i, 0xC6BEBDFF, "Post at forum.andromada.net in ban apeal board for unban request!");
BanMsg(i, "Weapon cheat."); // Ban
}
}
}
}