OnPlayerText Help +REP
#2

Code:
public OnPlayerText(playerid, text[]) 
{ 
    if(PlayerInfo[playerid][pAdmin] == 1) 
    { 
        new pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{FF2400}[King] "; 
        GetPlayerName(playerid, pName, 24); 
        format(String, sizeof(String), "%s%s%s{FFFFFF}[%d]: {FFFFFF}%s {FFFFFF}%s", Prefix, TeamColor[gTeam[playerid]], pName, playerid, text); 
        SendClientMessageToAll(-1,String); 
        return 1; 
    } 
    if(PlayerInfo[playerid][pVip] > 0) 
    { 
        new pName[MAX_PLAYER_NAME], String[128], Prefix[] = "{FF2400}[VIP+] "; 
        GetPlayerName(playerid, pName, 24); 
        format(String, sizeof(String), "%s%s%s{FFFFFF}[%d]: {FFFFFF}%s {FFFFFF}%s", Prefix, TeamColor[gTeam[playerid]], pName, playerid, text); 
        SendClientMessageToAll(-1,String); 
        return 1; 
    } 

    HideClassTextdraw(playerid); 
    return 0; 
}
Reply


Messages In This Thread
OnPlayerText Help +REP - by Mohaowmad - 25.03.2019, 07:33
Re: OnPlayerText Help +REP - by Vizi10 - 25.03.2019, 08:01
Re: OnPlayerText Help +REP - by Mohaowmad - 25.03.2019, 08:12
Re: OnPlayerText Help +REP - by TheToretto - 25.03.2019, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)