[Need a lil help] Kick Gun
#1

public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)

When you punch the person when you have the kick-gun out, they get kicked.

How would I make it so that they only get kicked when they get shot with ID Gun 33.
Reply
#2

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(GetPlayerWeapon(issuerid) == 33) return Kick(issuerid);
    return 1;
}
This will kick the issuerid who shot a playerid with weapon id 33.
Reply
#3

Ok that worked, Thankyou to everyone who was helped me with this Kickgun Script. Amazing, Thanks !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)