[HELP] Join/Leave/Kick Textdraw. (+REP for Help)
#4

PHP код:
#define Col_Green "{6BAB64}"
#define Col_Purple "{AB57D4}"
#define Col_White "{FFFFFF}"
#define Col_Yellow "{FFFF00}"
new Text:dc1;
public 
OnPlayerDisconnect(playeridreason)
{
    new
        
szString[64],
        
playerName[MAX_PLAYER_NAME];
 
    
GetPlayerName(playeridplayerNameMAX_PLAYER_NAME);
 
     if(
reason == 3)
     {
         
TextDrawHideForPlayer(playerid,dc1);
        
format(szStringsizeof szString""Col_Purple"Kick: "Col_White"%s (%d)."playerNameplayerid);
        
dc1 TextDrawCreate(180.000000100.000000szString);
        
TextDrawShowForPlayer(playerid,dc1);
    }
    
    else if(
reason == 1)
     {
         
TextDrawHideForPlayer(playerid,dc1);
        
format(szStringsizeof szString""Col_Yellow"Quit: "Col_White"%s (%d)."playerNameplayerid);
        
dc1 TextDrawCreate(180.000000100.000000szString);
        
TextDrawShowForPlayer(playerid,dc1);
    }
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
TextDrawHideForPlayer(playerid,dc1);
    new 
string[64], pName[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    
format(string,sizeof string,""Col_Green"Join: "Col_White"%s (%d).",pName,playerid);
    
dc1 TextDrawCreate(180.000000100.000000szString);
    
TextDrawShowForPlayer(playerid,dc1);
    return 
1;

There you go, enjoy.
Reply


Messages In This Thread
[HELP] Join/Leave/Kick Textdraw. (+REP for Help) - by DarkBoyy - 17.10.2015, 08:15
Re: [HELP] Join/Leave/Kick Textdraw. (+REP for Help) - by xTURBOx - 17.10.2015, 09:42
Re: [HELP] Join/Leave/Kick Textdraw. (+REP for Help) - by DarkBoyy - 17.10.2015, 10:06
Re: [HELP] Join/Leave/Kick Textdraw. (+REP for Help) - by Luicy. - 17.10.2015, 11:05
Re: [HELP] Join/Leave/Kick Textdraw. (+REP for Help) - by Face9000 - 17.10.2015, 11:29
Re: [HELP] Join/Leave/Kick Textdraw. (+REP for Help) - by DarkBoyy - 18.10.2015, 03:33
Re: [HELP] Join/Leave/Kick Textdraw. (+REP for Help) - by Luicy. - 18.10.2015, 06:26

Forum Jump:


Users browsing this thread: 4 Guest(s)