whats better?
#1

whats better making a weapon anti cheat
on OnPlayerUpdate
or making a specific timer for it like for 1 sec?
Reply
#2

Timer on 1 second.
Reply
#3

Well, if you are planning to show messages when the player get's banned, use a one second timer, else if you are going to just ban the player, you can use OnPlayerUpdate like this:

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerWeapon(playerid) == 38) Ban(playerid); //Weapon minigun
    return 1;
}
Reply
#4

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
Well, if you are planning to show messages when the player get's banned, use a one second timer, else if you are going to just ban the player, you can use OnPlayerUpdate like this:

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerWeapon(playerid) == 38) Ban(playerid); //Weapon minigun
    return 1;
}
i know iv made it
Reply
#5

Well you could just use GetPlayerWeaponData which isn't really that accurate but it can detect weapons without players having it equipped.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)