weired
#1

hey, i have a anti weapon cheat but even if he dosnt have the weapons listed it sends a message
to admins sayign he does why??
pawn Код:
if(IsPlayerConnected(i) && PInfo[i][Level] >= 0)
        {
            GetPlayerWeaponData(i, 7, weap, ammo);
            if(weap == 38||37||26||27) {
                GetPlayerName(i,tname,sizeof(tname));
                format(string,sizeof(string),"INFO: %s has a minigun/flamethrower/shotgun", tname);
                MessageToAdmins(WHITE,string);
            }
Reply
#2

It's got to be like:
pawn Код:
if(IsPlayerConnected(i) && PInfo[i][Level] >= 0)
{
    GetPlayerWeaponData(i, 7, weap, ammo);
    if(weap == 38 || weap == 37 || weap == 26 || weap == 27)
    {
        GetPlayerName(i,tname,sizeof(tname));
        format(string,sizeof(string),"INFO: %s has a minigun/flamethrower/shotgun", tname);
        MessageToAdmins(WHITE,string);
    }
}
Or:
pawn Код:
if(IsPlayerConnected(i) && PInfo[i][Level] >= 0)
{
    GetPlayerWeaponData(i, 7, weap, ammo);
    switch(weap)
    {
        case 26, 27, 37, 38:
        {
            GetPlayerName(i,tname,sizeof(tname));
            format(string,sizeof(string),"INFO: %s has a minigun/flamethrower/shotgun", tname);
            MessageToAdmins(WHITE,string);     
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)