12.09.2010, 13:09
I have made a command and I don't know how to set it sp it just says Admin: Text.
pawn Код:
if (strcmp("/asay1", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "Error: You are not an admin");
{
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "Admin: %s %s", cmdtext);
SendClientMessageToAll(COLOR_YELLOW, cmdtext);
}
return 1;
}