SA-MP Forums Archive
BUG - 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: BUG (/showthread.php?tid=592093)



BUG - VirtasVarsketis - 20.10.2015

Hello, when player gets a playerinfo change like there is enum.
enum pInfo
{
pAdmin
}
Y_INI saves the data, file looks like this.
[data]
Admin = 0
I set it to 1, player gets admin, BUT THE ADMIN SAVES ON PLAYER'S ID. Anyone who registers with same id gets admin! what to do?


Re : BUG - StreetRP - 20.10.2015

Set it 0 when player disconect
PHP код:
public OnPlayerDisconnect(playeridreason)
{
    return 
1;