Jump to content

Question

Posted (edited)

Problema intalnita (descriere): Vreau /me să fie de genul

Alexandr69 vrea un text care con....

... tinua asa.  ((Alexandr69)) 

 

Insă nu merge.

 


Ero(area / rile) / warning-(ul / urile):  Nu  am.


Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:  Da. 

 

SendCustomPlayerMessage(playerid, color, text[])
{
    if(strlen(text) > 112)
    {
        new text1[112],
            text2[112],
            pos = strfind(text," "false,102)
			string[224];

        strmid(text1, text, 0, pos);
        strmid(text2, text, pos, strlen(text));

        format(string, sizeof(string), "%s...", text1);
        SendClientMessage(playerid, color, string);

        format(string, sizeof(string), "...%s", text2);
        SendClientMessage(playerid, color, string);
    }
    else SendClientMessage(playerid, color, text);
}

CMD:me(playerid, params[])
{
    new string[128], action[128];
    if(sscanf(params, "s[128]", action))
    {
        SendClientMessage(playerid, -1, ""chat" /me [action]");
        return 1;
    }
    else
    {
        format(string, sizeof(string), "* %s %s", PlayerName(playerid), action);
        ProxDetector(30, playerid, string, COLOR_PURPLE);
    }
    return 1;
}

Aceasta este comanda /me

 

 

 

 

Edited by Alexandr69

4 answers to this question

Recommended Posts

  • 0
Posted
Acum 15 ore, EquiNox a spus:

Pai bun , tu vrei , si ce ai incercat sa faci? 

S-a concentrat atat de tare asupra comenzii ca i-a venit ideea geniala sa posteze pe 3 forumuri ca un prost tot il ajuta.

  • 0
Posted

Topic inchis . Nu se cer script-uri ! Topicul va fi mutat in arhiva maine , ca sa ma asigur ca ai citit .

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.