SA-MP Forums Archive
Chat problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Chat problem (/showthread.php?tid=127523)



Chat problem - LiDeRu`s - 13.02.2010

hello ...
how do you defend me and me above my head as chatu or write to / b / s, / me etc.. to appear above my head ..
example: http://i50.tinypic.com/2r3wos6.png


Re: Chat problem - SloProKiller - 13.02.2010

Use SetPlayerChatBubble


Re: Chat problem - Eazy_Efolife - 13.02.2010

https://sampwiki.blast.hk/wiki/SetPlayerChatBubble


Re: Chat problem - LiDeRu`s - 13.02.2010

I do not know how to do: (
That's why I posted here can someone give me the script ...


Re: Chat problem - LiDeRu`s - 13.02.2010

I apologize for double post but I can not even help me please someone beautiful? with a script / tutorial something ....


Re: Chat problem - Fedee! - 13.02.2010

Quote:
Originally Posted by LiDeRu`s
I apologize for double post but I can not even help me please someone beautiful? with a script / tutorial something ....
Have you even read Wikiґs page?

Quote:
Originally Posted by Wiki
Example:

public OnPlayerText(playerid, text[])
{
SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
return 1;
}



Re: Chat problem - LiDeRu`s - 14.02.2010

I saw example but I do not know how ... Maybe you can help
at least show me how to do this command that is to be made after we have to do

pawn Код:
if(strcmp(cmd, "/b", true) == 0)//local ooc
    {
      if(IsPlayerConnected(playerid))
      {
        if(gPlayerLogged[playerid] == 0)
        {
          SendClientMessage(playerid, COLOR_GREY, "  You havent logged in yet !");
          return 1;
        }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /b [local ooc chat]");
                return 1;
            }
            format(string, sizeof(string), "%s Says: (( %s ))", sendername, result);
            ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            printf("%s", string);
        }
        return 1;
    }