07.02.2010, 05:15
I know it is nooby but it is the only thing I cant seem to script for my chat script.A helpful little post would be nice
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;
}
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;
}
.....
}
Originally Posted by [HiC
TheKiller ]
Simple Command Processor pawn Код:
|
Originally Posted by too803
I copied and pasted.
|