28.10.2010, 00:20
(
Последний раз редактировалось marinov; 28.10.2010 в 00:36.
)
How do I make a /r chat for the team (id 6) ?
COMMAND:r(playerid, params[]) {
new string[128];
if (GetPlayerTeam(playerid) != 6) return SendClientMessage(playerid, COLOR_RED, "Your Not Team 6!");
if (sscanf(params, "s", string)) return SendClientMessage(playerid, COLOR_RED, "/r <message>");
for (new i = 0; i < MAX_PLAYERS; i++) {
if (GetPlayerTeam(i) == 6) {
new name[24]; GetPlayerName(i, name, 24);
format(string, 128, "TEAM %s: %s", name, string);
SendClientMessage(i, COLOR_WHITE, string);
}
}
return 1;
}