11.09.2012, 18:07
pawn Код:
SendClientMessageToAll(AZUL, "|___________ Anuncio del Estado___________|");
new Sexo = JugadorInfo[playerid][jSexo], Nombre[20];
if(JugadorInfo[playerid][jAlcalde] == 1)
{
if(Sexo == 1) Nombre = "Alcalde"; else Nombre = "Alcaldesa";
format(string, sizeof(string), "%s %s: %s", Nombre, NombreJugador(playerid), result);
SendClientMessageToAll(BLANCO, string);
}
else if(JugadorInfo[playerid][jMiembro] == 1 || JugadorInfo[playerid][jLider] == 1)
{
if(Sexo == 1) Nombre = "Sheriff"; else Nombre = "Sheriff (Mujer)";
if(JugadorInfo[playerid][jLider] == 1) { format(string, sizeof(string), "%s %s: %s", Nombre, NombreJugador(playerid), result); }
SendClientMessageToAll(BLANCO, string);
}
else if(JugadorInfo[playerid][jMiembro] == 2 || JugadorInfo[playerid][jLider] == 2)
{
if(Sexo == 1) Nombre = "General"; else Nombre = "Generala";
if(JugadorInfo[playerid][jLider] == 2) { format(string, sizeof(string), "%s %s: %s", Nombre, NombreJugador(playerid), result); }
SendClientMessageToAll(BLANCO, string);
}
else if(JugadorInfo[playerid][jMiembro] == 3 || JugadorInfo[playerid][jLider] == 3)
{
if(Sexo == 1) Nombre = "Director Medico"; else Nombre = "Directora Medica";
if(JugadorInfo[playerid][jLider] == 3) { format(string, sizeof(string), "%s %s: %s", Nombre, NombreJugador(playerid), result); }
SendClientMessageToAll(BLANCO, string);
}
else if(JugadorInfo[playerid][jMiembro] == 16 || JugadorInfo[playerid][jLider] == 16)
{
if(Sexo == 1) Nombre = "Alcalde"; else Nombre = "Alcaldesa";
if(JugadorInfo[playerid][jLider] == 16) { format(string, sizeof(string), "%s %s: %s", Nombre, NombreJugador(playerid), result); }
SendClientMessageToAll(BLANCO, string);
}