snipe rifle detect
#1

Welcome

How to make a script that when you type the command / snipe displayed in the GUI all the list of players who have (even if they have it hidden) gun sniper rifle
Reply
#2

Use foreach for that.
pawn Код:
new
    w,
    a
;
foreach(new i : Player)
{
    for( new j; j != 13; j++ )
    {
        GetPlayerWeaponData( i, j, w, a );
        if( j == 34 )
        {
            // Playerid i has sniper
        }
    }
}
Reply
#3

And you can give the whole code? because I'm pretty green in pawno ..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)