[REQUEST]/me command
#2

Normally

http://forum.sa-mp.com/index.php?topic=144062.0

However this is such a simple one.
pawn Код:
dcmd_me(playerid, params[])
{
  new msg[128], pname[MAX_PLAYER_NAME];
  GetPlayerName(playerid,pName,sizeof(pName));
  format(msg,sizeof(msg),"** %s(%i): %s",pName,playerid,params);
  SendClientMessageToAll(0xFFD720FF,msg);
  return 1;
}
or if you don't use dcmd yet(why the hell not) strcmp version

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]){
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
    if(strcmp(cmd, "/component",true) == 0)
    {
        new msg[128], pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,sizeof(pName));
        format(msg,sizeof(msg),"** %s(%i): %s",pName,playerid,cmdtext);
        SendClientMessageToAll(0xFFD720FF,msg);
        return 1;
    }
.....
}
Reply


Messages In This Thread
[REQUEST]/me command - by too803 - 07.02.2010, 05:15
Re: [REQUEST]/me command - by mansonh - 07.02.2010, 05:23
Re: [REQUEST]/me command - by too803 - 07.02.2010, 05:33
Re: [REQUEST]/me command - by too803 - 07.02.2010, 06:10
Re: [REQUEST]/me command - by [HiC]TheKiller - 07.02.2010, 06:11
Re: [REQUEST]/me command - by mansonh - 07.02.2010, 06:30
Re: [REQUEST]/me command - by too803 - 07.02.2010, 06:33
Re: [REQUEST]/me command - by Miguel - 07.02.2010, 06:36
Re: [REQUEST]/me command - by mansonh - 07.02.2010, 06:43
Re: [REQUEST]/me command - by too803 - 07.02.2010, 06:49

Forum Jump:


Users browsing this thread: 1 Guest(s)