weired
#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


Messages In This Thread
weired - by dark_clown - 23.10.2010, 22:00
Re: weired - by Miguel - 24.10.2010, 01:50

Forum Jump:


Users browsing this thread: 2 Guest(s)