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

Quote:
Originally Posted by Cerealguy
Посмотреть сообщение
I not see a tutorial, I see a broken script without offending

i think:
pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], name[MAX_PLAYER_NAME] ;
    GetPlayerName(playerid, name, sizeof(name));
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        format(string,sizeof(string),"{993300}[ADMIN] {33CC99}%s {999999}[%i]: {FFFFFF}%s", name, playerid, text);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        return 0;
    }
    else if(PlayerInfo[playerid][pDonator] >= 1)
    {
        format(string,sizeof(string),"{FF6600}[DONATOR] {990099}%s {999999}[%i]: {FFFFFF}%s", name, playerid, text);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        return 0;
    }
    else
    {
        format(string,sizeof(string),"%s {999999}[%i]: {FFFFFF}%s", name, playerid, text);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        return 0;
    }
    return 1;
}
Total correct, People should first learn and then teach.
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: 1 Guest(s)