12.04.2009, 16:28
I can fix the first one:
Two takes testing so I wont bother with that, and with three, do you know how to use scriptfiles? Even if you did get a script like that, would you know how to use it?
pawn Код:
if(strcmp(cmdtext, "/mega", true, 5) == 0)
{
if(gTeam[playerid] != TEAM_COP) return SendClientMessage(playerid, COLOR_RED, "You are not a cop");
if(strlen(cmdtext[6]) == 0) return SendClientMessage(playerid, COLOR_RED, "Usage: /mega [msg]");
new str[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str), "Officer %s: %s", pname, cmdtext[6]);
SendClientMessageToAll(COLOR_BLUE, str);
return 1;
}