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



Check online. - SukMathcuck - 12.12.2016

Would it be functional? Take the character's name and warehouse in new, and so checking if the player is online, if so, send a message to him saying that the character is already in the game, is it functional?

PHP код:
****if(id*==*1)
    {
        for(new 
0MAX_PLAYERSi++)
        {
            new 
idonline GetPlayerID(Account[i][pPersonagem1]);
            if(
IsPlayerConnected(idonline)) return SendClientMessage(playeridCOLOR_ERROR"This character is already in the game. ");
        }
    }