GetPlayerArmour
#1

Код:
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!
Reply
#2

OFF: How would having a armour relate to s0b?

ON: Under which callback is that code?
Reply
#3

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
Reply
#4

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)