17.06.2012, 19:56
pawn Код:
zcmd(a, playerid, params[])
{
if (PlayerInfo[playerid][pJDS] < 1) return Message(playerid, COLOR_GRAD2, "ЎNo autorizado!");
if ((noac) && PlayerInfo[playerid][pJDS] == 1024) return Message(playerid,COLOR_GRAD2,"Este canal estб desactivado!");
if (!sscanf(params, "s[128]", params[0])){
new string[128], arank[64];
switch(PlayerInfo[playerid][pJDS])
{
case 1: arank = "Ayudante"
case 2: arank = "Ayudante Avanzado"
case 3: arank = "Moderador"
case 4: arank = "Moderador Avanzado"
case 5: arank = "Moderador General"
case 6: arank = "Administrador"
case 7: arank = "Adminstrador General"
case 1024: arank = "Administrador Dueсo";
default: arank = "???";
}
format(string, sizeof(string), "%s %s: %s", arank, PlayerName(playerid), params[0]);
if (PlayerInfo[playerid][pJDS] > 0 && PlayerInfo[playerid][pJDS] < 3) SendAdminMessage(0xB793FFFF, string);
else if (PlayerInfo[playerid][pJDS] > 2 && PlayerInfo[playerid][pJDS] < 5) SendAdminMessage(0x00A5F4FF, string);
else if (PlayerInfo[playerid][pJDS] > 5) SendAdminMessage(0xEA7A0BFF, string);
else Message(playerid, -1, "{FFFFFF}* Recuerde usar el {3F96CB}TeamSpeak");
} else Message(playerid, COLOR_GRAD2, "Utilize: /a <Texto>");
return 1;
}
Lo que yo quiero, es que de JDS(Es el Rango Administrativo) 1 y 2, hablen con color 0xB793FFFF por /a [Violetita], despuйs, que JDS 3, 4 y 5, hablen con color 0x00A5F4FF por /a [Azul], y que JDS 6, 7 y 1024, hablen con color 0xEA7A0BFF por /a [Naranja]