[Help]how to make a tag.
#6

pawn Код:
stock GetAdminRank(playerid)
{
    if(!IsPlayerConnected(playerid)) return 0;
    new AdminRank[40]
    switch(Adminvariable[playerid])
    {
        case 0: { Adminrank = "None"; }
        case 1: { Adminrank = "Moderator"; }
        case 2: { Adminrank = "Junior Admin"; }
        //And so forth
    }
    return Adminrank;
}

public OnPlayerText(playerid, text[])
{
    new string[128], name[MAX_PLAYER_NAME];
    if(Adminvariable[playerid] >= 1)
    {
        format(string, sizeof(string), "[%s] %s: %s", GetAdminRank(playerid), GetPlayerName(playerid, name, sizeof(name)), text);
        SendClientMessageToAll(playerid, -1, string);
        return 0;
    }
    return 1;
}
This is a better example.
Reply


Messages In This Thread
[Help]how to make a tag. - by [A]ndrei - 25.06.2012, 19:26
Re: [Help]how to make a tag. - by Kindred - 25.06.2012, 19:30
Re: [Help]how to make a tag. - by [A]ndrei - 25.06.2012, 20:49
Re: [Help]how to make a tag. - by .Wicked - 25.06.2012, 20:56
Re: [Help]how to make a tag. - by Dubya - 25.06.2012, 20:57
Re: [Help]how to make a tag. - by Kindred - 25.06.2012, 21:00
Re: [Help]how to make a tag. - by .Wicked - 25.06.2012, 21:03
Re: [Help]how to make a tag. - by Kindred - 25.06.2012, 21:06
Re: [Help]how to make a tag. - by [A]ndrei - 26.06.2012, 04:22
Re: [Help]how to make a tag. - by [A]ndrei - 27.06.2012, 02:15

Forum Jump:


Users browsing this thread: 1 Guest(s)