27.11.2011, 20:16
pawn Код:
public OnPlayerChangeWeapon(playerid, oldweapon, newweapon)
{
new string[256];
if(gPlayerLogged[playerid] && IsPlayerConnected(playerid))
{
if(!IsPlayerNPC(playerid))
{
if(!(PlayerInfo[playerid][pAdmin] <= 0))
{
new weap=GetPlayerWeapon(playerid);
if(weap > 0 && weap != 46)
{
if(weap != 25 && weap != 46)
{
if(HaveWeapon(playerid,weap) != weap)
{
if(HaveAdminWeapon(playerid,weap) != weap)
{
if(HavePaintballWeapon(playerid,weap) != weap)
{
if(HaveEventWeapon(playerid,weap) != weap)
{
new WeaponName[65];
GetWeaponName(weap,WeaponName,64);
format(string, sizeof(string), "Hack: %s (%d) has a desynced %s",PlayerName(playerid),playerid,WeaponName);
ABroadCast(COLOR_YELLOW,string, 1);
}
}
}
}
}
}
}
}
}
}
Please someone help.