Two lined /me and /do ? - 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)
+--- Thread: Two lined /me and /do ? (
/showthread.php?tid=446173)
Two lined /me and /do ? -
Ceez - 24.06.2013
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?
Re: Two lined /me and /do ? -
Mystique - 24.06.2013
https://sampforum.blast.hk/showthread.php?tid=135023
Next time use the search function.
Re: Two lined /me and /do ? -
Ceez - 24.06.2013
EDIT: Just checked IG, that's not working
Re: Two lined /me and /do ? -
Mystique - 24.06.2013
Well then I guess I can't help you because it worked for me when installing it on a old server.
Re: Two lined /me and /do ? -
Ceez - 25.06.2013
BUMP?
Re: Two lined /me and /do ? -
Cjgogo - 25.06.2013
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;
}