13.07.2012, 16:34
pawn Код:
if(strcmp(cmdtext, "/help", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, ERROR, "Use: /help [MESSAGE]");
new string[144];
new pName[MAX_PLAYER_NAME];
GetPlayerName(pName,sizeof(pName),playerid);//<---------------add this
format(string, sizeof(string), "[ ! ] %s [ID:%d] asks : %s", pName, playerid, cmdtext[6]);//put cmdtext[6], not tmp
SendClientMessageToAdmins(string);
return 1;
}