Double question
#1

How can I kick someone who is banned using my y_ini system banned variable pBanned, and question two how can I read the amount of money a player has from file and set the players money to it (variable is pCash)?
Thanks.
Reply
#2

Do you mean how do you kick them when you type the command /ban?
Reply
#3

No, I meant if they are banned thru the variable pBanned then when they try to connect they automatically get kicked.
Reply
#4

pawn Код:
public OnPlayerConnect(playerid)
{
    if(pBanned[playerid] != false/0)
    {
        Kick(playerid);
    }
    return true;
}

two question explain.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)