Newbie chat help
#1

I have a /n chat script right. So, what I have so far is
Код:
[N] Karlos Says: Example
But I would like certain users to have a prefix before their name if thats possible. Like the users that are scripted as admin/moderators heres what I want it to be like.

-Examples below.

[Adminlevel] < 1) Helper = [N] Helper Karlos Says: Welcome to my server!
[Adminlevel] < 2) Moderator = [N] Moderator Karlos Says: Welcome to my server!
[Adminlevel] < 3) Admin = [N] Admin Karlos Says: Welcome to my server!
[Adminlevel] < 4) Admin = [N] Admin Karlos Says: Welcome to my server!
[Adminlevel] < 5) Admin = [N] Admin Karlos Says: Welcome to my server!

-Here's my current code

Код:
CMD:n(playerid, params[])
{
    new tmpstring[164], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
    if(sscanf(params, "s[128]", tmpstring))
    {
    	SendClientMessage(playerid, NEWBIE, "ERROR: Usage /n [message]");
        return 1;
    }
    else
    {
        format(tmpstring, sizeof(tmpstring), "[N] %s: %s ", name, tmpstring);
        SendClientMessageToAll(0x00E3AEFF, tmpstring);
    }
    return 1;
}
Reply


Messages In This Thread
Newbie chat help - by KiiD - 12.06.2012, 06:26
Re: Newbie chat help - by Calgon - 12.06.2012, 06:32
Re: Newbie chat help - by Jikesh - 12.06.2012, 06:36
Re: Newbie chat help - by KiiD - 12.06.2012, 07:00
Re: Newbie chat help - by Jikesh - 12.06.2012, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)