[Ajuda] Duvida
#3

Basicamente sim, bastaria adicionar esta validaзгo:
pawn Код:
//Exemplo
public OnPlayerConnect(playerid)
{
    SetTimerEx("CheckMoney", 1000, true, "i", playerid);
    return 1;
}

forward CheckMoney(playerid);
public CheckMoney(playerid)
{
    if(!ValidateMoney(playerid)) Ban(playerid);

}


ValidadeMoney(playerid)
{
    if(GetPlayerMoney(playerid) != GetPlayerGrana(playerid)) return false;
    return true;
}
Mas eu aconselharia mais a estudar e se basear pelo mйtodo hook.
Reply


Messages In This Thread
Duvida - by LucasDias - 01.06.2015, 14:15
Re: Duvida - by Dayvison_ - 01.06.2015, 14:53
Re: Duvida - by Bruno13 - 01.06.2015, 15:05
Re: Duvida - by LucasDias - 01.06.2015, 16:34
Re: Duvida - by Dayvison_ - 01.06.2015, 17:00
Re: Duvida - by LucasDias - 01.06.2015, 17:26
Re: Duvida - by Dayvison_ - 01.06.2015, 18:42

Forum Jump:


Users browsing this thread: 1 Guest(s)