Want to Have a discussion and solution !!
#1

Hi there SanAndreas World!!
I have a discussion to start about scripting
Actually i want help frm u guyz
I want to make a script..
whenever i make anyone admin
i want a red tag named [Admin] after his name
e.g Fa$ih[Admin]: Hyy all

I want a solution and if anyone could make me a quote of all script
Thankzzz
Reply
#2

any solutionzz
Reply
#3

You need your Admin variable and OnPlayerText
pawn Code:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    if(Your_Variable[playerid][Your_Level] >= 1) {
        GetPlayerName(playerid, name, sizeof (name));
        format(textv2, sizeof (textv2), "%s[ADMIN]: %s", name, text);
        SendPlayerMessageToAll(playerid, textv2);
    }
    else {
        GetPlayerName(playerid, name, sizeof (name));
        format(textv2, sizeof (textv2), "%s: %s", name, text);
        SendPlayerMessageToAll(playerid, textv2);
    }
    return 0;
}
Reply
#4

ohhhh thxx mann
@Kostas
Reply
#5

Also, if you want you can use the whole name red so that when they are on admin duty You know.
Code:
SetPlayerColor(playerid, Coloryouwant);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)