17.03.2012, 08:51
Say me how to add this code in my trucking server
Код:
CMD:announce(playerid, params[]) { new pid; if (APlayerData[playerid][PlayerLevel] >= 1) { if(!sscanf(params, "ui", pid)) { new string[256]; format(string, sizeof(string), "Announcement by %s: %s", GetName(pid), text); SendClientMessage(playerid, COLOR_RED, string); return 1; } else return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /announce [Text]"); } else SendClientMessage(playerid, COLOR_RED, "You do not have access to this command"); return 1; }