Two lined /me and /do ?
#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


Messages In This Thread
Two lined /me and /do ? - by Ceez - 24.06.2013, 19:24
Re: Two lined /me and /do ? - by Mystique - 24.06.2013, 19:29
Re: Two lined /me and /do ? - by Ceez - 24.06.2013, 19:34
Re: Two lined /me and /do ? - by Mystique - 24.06.2013, 19:49
Re: Two lined /me and /do ? - by Ceez - 25.06.2013, 13:06
Re: Two lined /me and /do ? - by Cjgogo - 25.06.2013, 13:32

Forum Jump:


Users browsing this thread: 3 Guest(s)