30.08.2011, 04:25
pawn Код:
dcmd_g(playerid, params[])
{
new string[128];
if(GetPVarInt(playerid, "Logged") == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You are not logged in!");
new message;
if(sscanf(params,"s",message)) return SendClientMessage(playerid, COLOR_ORANGE, "CMD: /g [message]");
format(string, sizeof(string), "[GLOBAL] %s(%d) says: %s", PlayerName(playerid), playerid, message);
SendClientMessageToAll(COLOR_WHITE, string);
return 1;
}
It's been a while since I used dcmd style, but this should work -.-