[Help] If player has armor - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] If player has armor (
/showthread.php?tid=204045)
[Help] If player has armor -
[Comrade] - 28.12.2010
hey guys, how can i make it so, if player has armor server will kick him
Re: [Help] If player has armor -
MrDeath537 - 28.12.2010
It should work:
pawn Код:
public OnPlayerUpdate(playerid)
{
static
Float: s_fArmour;
GetPlayerArmour(playerid, s_fArmour);
if (s_fArmour > 0.0)
Ban(playerid);
return 1;
}
Re: [Help] If player has armor -
_rAped - 28.12.2010
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.
Re: [Help] If player has armor -
[Comrade] - 28.12.2010
what about guns such as minigun and rocket launchers?
Re: [Help] If player has armor -
Kitten - 28.12.2010
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