/me command
#9

About those ERRORS , here is the good code:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/rules", cmdtext, true, 6) == 0)
    {
        SendClientMessage(playerid,0x33AA33AA,"This is a RolePlay Server, We want you to RP the best you can!");
        SendClientMessage(playerid,0x33AA33AA,"Cheating is strict forbidden, Doing it can lead to ban!");
        SendClientMessage(playerid,0x33AA33AA,"Do not Spam/Provoke, Doing it can lead to punishment!");
        SendClientMessage(playerid,0x33AA33AA,"Always Respect/Listen the Admins, They are here to help you!");
    }
    if (strcmp("/credits", cmdtext, true, 8) == 0)
    {
        SendClientMessage(playerid,0x33AA33AA,"Founder/Developer: Hand-Scripter");
    }
    if(!strcmp(cmdtext, "/me", true, 3))
    {
        if(!cmdtext[3])return SendClientMessage(playerid, 0xFFC0CBFF, "USAGE: /me [Action]");
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
        SendClientMessageToAll(0xFFC0CBFF, str);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
/me command - by Hand-Scripter - 02.03.2012, 08:57
Re: /me command - by Twisted_Insane - 02.03.2012, 08:59
Re: /me command - by Hand-Scripter - 02.03.2012, 09:02
Re: /me command - by Twisted_Insane - 02.03.2012, 09:06
Re: /me command - by Hand-Scripter - 02.03.2012, 09:10
Re: /me command - by ShOoBy - 02.03.2012, 09:10
Re: /me command - by Twisted_Insane - 02.03.2012, 09:11
Re: /me command - by Hand-Scripter - 02.03.2012, 09:19
Re: /me command - by ShOoBy - 02.03.2012, 09:21
Re: /me command - by Walsh - 02.03.2012, 12:26

Forum Jump:


Users browsing this thread: 1 Guest(s)