Double question - 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: Double question (
/showthread.php?tid=555811)
Double question -
DownDuckling - 08.01.2015
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.
Re: Double question -
Ciarannn - 08.01.2015
Do you mean how do you kick them when you type the command /ban?
Re: Double question -
DownDuckling - 08.01.2015
No, I meant if they are banned thru the variable pBanned then when they try to connect they automatically get kicked.
Respuesta: Double question -
JuanStone - 08.01.2015
pawn Код:
public OnPlayerConnect(playerid)
{
if(pBanned[playerid] != false/0)
{
Kick(playerid);
}
return true;
}
two question

explain.