[Help] If player has armor
#1

hey guys, how can i make it so, if player has armor server will kick him
Reply
#2

It should work:


pawn Код:
public OnPlayerUpdate(playerid)
{
    static
        Float: s_fArmour;

    GetPlayerArmour(playerid, s_fArmour);
    if (s_fArmour > 0.0)
        Ban(playerid);

    return 1;
}
Reply
#3

pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);

if(armour > 0.0)
{
    Kick(playerid);
}
Place it in a callback that's called frequently. Like OnPlayerUpdate.

GetPlayerArmour

Edit: Damn I was a bit too late.
Reply
#4

what about guns such as minigun and rocket launchers?
Reply
#5

Search Dude we not gonna stay here and help you with all the weapons thats why there is a wiki.
https://sampwiki.blast.hk/wiki/Weapons
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)