16.04.2012, 15:06
Quote:
I'm wondering if anyone can bother creating a newbie chat for me
and give me the codes, just a simble /n (question) and it will be sent to the whole server in the chat... i already have COLOR_NEWBIE so i only need someone to make the OnPlayerCommand.. THanks! |
pawn Код:
COMMAND:yourcommand(playerid, params[])
{
new tmpstring[164], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params, "s[128]", tmpstring))
{
SendClientMessage(ANGRY_COLOR, ERROR_RED, "ERROR: Usage /n [message]");
return 1;
}
else
{
format(tmpstring, sizeof(tmpstring), "(NEWBIE) %s: %s ", name, tmpstring);
SendClientMessageToAll(GetPlayerColor(playerid), tmpstring);
}
return 1;
}
-FalconX