12.12.2016, 01:32
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 i = 0; i < MAX_PLAYERS; i++)
{
new idonline = GetPlayerID(Account[i][pPersonagem1]);
if(IsPlayerConnected(idonline)) return SendClientMessage(playerid, COLOR_ERROR, "This character is already in the game. ");
}
}