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);
}