SA-MP Forums Archive
GetPlayerArmour - 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)
+--- Thread: GetPlayerArmour (/showthread.php?tid=602769)



GetPlayerArmour - iulicxd - 12.03.2016

Код:
new Float:Armour;
if(GetPlayerArmour(playerid, Armour) > 2)
{
	SendMes(playerid, 0x00FF00FF, "{B9BCBD}(Anti-Cheat Armour)");
	DelayedKick(playerid);
}
But it not work,when i with set armour with s0b,server don't kick me.

NO Callback,used on timer 1 second!


Re: GetPlayerArmour - saffierr - 12.03.2016

OFF: How would having a armour relate to s0b?

ON: Under which callback is that code?


Re: GetPlayerArmour - SickAttack - 12.03.2016

The function itself doesn't return a specific value. The player's armour is stored in the specified variable.

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

if(Armour > 2.0)
{
    SendMes(playerid, 0x00FF00FF, "{B9BCBD}(Anti-Cheat Armour)");
    DelayedKick(playerid);
}
https://sampwiki.blast.hk/wiki/GetPlayerArmour


Re: GetPlayerArmour - iulicxd - 12.03.2016

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
The function itself doesn't return a specific value. The player's armour is stored in the specified variable.

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

if(Armour > 2.0)
{
    SendMes(playerid, 0x00FF00FF, "{B9BCBD}(Anti-Cheat Armour)");
    DelayedKick(playerid);
}
https://sampwiki.blast.hk/wiki/GetPlayerArmour
Thanks.I will give +rep


Re: GetPlayerArmour - saffierr - 12.03.2016

Ohh, was that the problem..
Should've explained it better lol...