Custom Accent
#4

Quote:
Originally Posted by faff
Посмотреть сообщение
pawn Код:
CMD:accent(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    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], 16, "");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, " You are not using any accent now.");
    }
    else{
    PlayerInfo[playerid][pAccent] = params;}
    return 1;
}
and what to do here?
i want it to be like "(-accent- Accent) Test says:"

Код:
	switch(PlayerInfo[playerid][pAccent])
	{
		case 0, 1:
		{
			format(string, sizeof(string), "%s says: %s", 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);
	}
Reply


Messages In This Thread
Custom Accent - by Nivniv2 - 23.03.2013, 01:21
Re: Custom Accent - by faff - 23.03.2013, 01:26
Re: Custom Accent - by Glad2BeHere - 23.03.2013, 02:00
Re: Custom Accent - by Nivniv2 - 23.03.2013, 02:02
Re: Custom Accent - by faff - 24.03.2013, 11:12
Re: Custom Accent - by Mando - 24.03.2013, 11:13

Forum Jump:


Users browsing this thread: 2 Guest(s)