Two lined /me and /do ?
#1

Hey, I've noticed Los Santos Roleplay has this feature of when you're writing a text which is too long,
your message splits - it shows a part of the text in the upper line, the rest in the bottom in order to have the chance to make longer /me's and /do's.
I heard this has something to do with SplitMessage (??) couldn't find anything about it..
Anybody knows how do I do this?
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=135023

Next time use the search function.
Reply
#3

EDIT: Just checked IG, that's not working
Reply
#4

Well then I guess I can't help you because it worked for me when installing it on a old server.
Reply
#5

BUMP?
Reply
#6

Well, I am currently writing this right NOW, so I don't know if it works, but try it(add the piece of code inside the function OnPlayerText):

pawn Код:
public OnPlayerText(playerid, text[])
{
       new string1[54],string2[54],message[136];
       if(strlen(text)<=108)
       {
           for(new i=0;i<strlen(text);i++)
           {
                   if(i==55)
                       string1[i]='-';
                   if(i<54)
                       string1[i]=text[i];
                   else
                       string2[i]=text[i];
            }
            new pName[24];
            GetPlayerName(playerid,pName,24);
            format(message,sizeof(message),"%s(%d):%s\n%s",pName,playerid,string1,string2);
            SendClientMessageToAll(COLOR_WHITE,message);
        }
   return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)