Accent not shown
#1

Код:
switch(PlayerInfo[playerid][pAccent])
    {
        case 0, 1:
        {
                        new accent;
                        accent = PlayerInfo[playerid][pAccent];
            format(string, sizeof(string), "(%s Accent) %s says: %s", accent, sendername, text);
            ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
	ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
		}
When im writing something its says: "( Accent) Admin: test" after i did /accent Admin, its should show "(Admin Accent) Admin: test"

/accent command:

Код:
CMD:accent(playerid, params[])
{
    if(sscanf(params, "s[16]", params))
    {
        SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /accent [accent]");
        SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /accent none - to remove your accent!");
        return 1;
    }
    if(!strcmp(params, "none"))
    {
        format(PlayerInfo[playerid][pAccent], PlayerInfo[playerid][pAccent], "");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, " You are not using any accent now.");
    }
    format(PlayerInfo[playerid][pAccent], PlayerInfo[playerid][pAccent], "%s", params);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now using "%s" accent.", params);
    return 1;
}
Reply


Messages In This Thread
Accent not shown - by Nivniv2 - 25.03.2013, 02:21
Re: Accent not shown - by LarzI - 25.03.2013, 02:32

Forum Jump:


Users browsing this thread: 1 Guest(s)