22.10.2011, 18:39
i want sistem with /announce but more colors i have 1 announce color i want more can someone help me ?
colors like : red blue yellow and more ...
colors like : red blue yellow and more ...
COMMAND:ann(playerid, params[])
{
if(PlayerInfo[playerid][PlayerAdmin] < ANN_LEVEL) return SendClientMessage(playerid,COLOR_RED, "You Cant Use This Command!");
GetPlayerName(playerid, Pname, sizeof(Pname));
if(sscanf(params,"si", params[0],params[1])) return SendClientMessage(playerid, COLOR_WHITE, ""WHITE"Usage: "GREEN"/Ann "WHITE"[Text] [Style 1-6]");
if(params[1]>6||params[1]<0) return SendClientMessage(playerid, COLOR_WHITE, ""WHITE"Usage: "GREEN"/Ann "WHITE"[Text] [Style 1-6]");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) GameTextForPlayer(i, params[0], 5000, params[1]);
}
return 1;
}