problem with onplayerdisconnect
#1

PHP код:
    new str[128], name[MAX_PLAYER_NAME];
    new 
Float:hp;
    
GetPlayerName(playeridnamesizeof(name));
    
format(str,sizeof(str), "{c3c3c3}(INFO) %s ( %d ) has left the game (with %s hp left)",PlayerName[playerid], playeridhp);
    
SendClientMessageToAll(-1,str); 
It's like the health hp of the player when disconnecting is not whowing, whats causing it lol.


EDIT:

nvm forgot to add
PHP код:
new Float:hp GetPlayerHealth(playeridhp); 
Reply


Messages In This Thread
problem with onplayerdisconnect - by wallen - 26.02.2018, 14:44
Re: problem with onplayerdisconnect - by Dayrion - 26.02.2018, 14:48
Re: problem with onplayerdisconnect - by wallen - 26.02.2018, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)