14.05.2011, 13:21
could someone make a command for me for example:
/o text
it shows:
(( [name]: [text] ))
/o text
it shows:
(( [name]: [text] ))
//OnPlayerCommand
dcmd(o, 1, cmdtext);
//SOmewhere outside callbacks
dcmd_o(playerid, params[])
{
new playername[MAX_PLAYER_NAME], message[128],string[128];
if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, -1, "Correct usage: /o [message]");
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "(( [%s]: %s ))", playername, message);
SendClientMessageToAll(-1, string);
return 1;
}