[PROBLEM] Kick Gun [HELP PLEASE!]
#1

Hey People,

Anyone know how to make a kick gun, that only level 1338 ADMINS Can get on "/aduty"?

IE: You shoot them in there AFK, and it kicks them from server....
Reply
#2

Sure, simply make a variable that is set when you do the command. Also give yourself a weapon. Then, when you use the weapon, under OnPlayerGiveDamage.

Example:

pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    if(gunvariable[playerid] == 1)
    {
        Kick(damagedid);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)