[Tutorial] Simple Name Tag for Admins and Donators
#7

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
Can't use case in that case, because it's not the same variable,
read this

A better way to do it.
pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
   
    if(PlayerInfo[playerid][pAdmin])
        format(string,sizeof(string),"{993300}[ADMIN] {%06x}%s {999999}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text);
    else if(PlayerInfo[playerid][pDonator])
        format(string,sizeof(string),"{FF6600}[DONATOR] {%06x}%s {999999}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text);
    else
        format(string,sizeof(string),"%s {999999}[%i]: {FFFFFF}%s", name, playerid, text);
       
    SendClientMessageToAll(GetPlayerColor(playerid), string);
    return 0;
}
Okay,if its RP Mode,eazy use ProxDetector than "SendClientMessageToAll" )))
Reply


Messages In This Thread
Simple Name Tag for Admins and Donators - by Kelbac - 04.01.2015, 09:59
Re: Simple Name Tag for Admins and Donators - by Kelbac - 04.01.2015, 10:07
Respuesta: Simple Name Tag for Admins and Donators - by Cerealguy - 07.01.2015, 00:43
Re: Respuesta: Simple Name Tag for Admins and Donators - by Dolpin - 07.01.2015, 01:26
Re: Simple Name Tag for Admins and Donators - by SnoopDy - 29.01.2015, 14:55
Re: Simple Name Tag for Admins and Donators - by xVIP3Rx - 29.01.2015, 15:21
Re: Simple Name Tag for Admins and Donators - by SnoopDy - 29.01.2015, 15:49

Forum Jump:


Users browsing this thread: 2 Guest(s)