05.07.2013, 03:48
Here it is:
You need "zcmd" include and "sscanf2" include.
Also sscanf plugin.
You need "zcmd" include and "sscanf2" include.
Also sscanf plugin.
PHP код:
CMD:n(playerid, params[])
{
new msg[128], result[128];
if(sscanf(params,"s[128]", result)) return SendClientMessage(playerid, -1, "USAGE: /n [text]");
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));// )
format(msg, sizeof(msg), "[NEWBIE]: %s - %s", pName, result);//pName
SendClientMessageToAll(COLOR_LIME, msg);
return 1;
}