new RankClass[MAX_PLAYERS] = { "CONSCRITO", "RECRUTA", "SOLDADO", "CABO", "3є SARGENTO", "2є SARGENTO", "1є SARGENTO", "SUB TENENTE", "ASPIRANTE", "2є TENENTE", "1є TENENTE", "CAPITГO", "MAJOR", "TENENTE CORONEL", "CORONEL", "GENERAL DE BRIGADA", "GENERAL DE DIVISГO", "GENERAL DE EXЙRCITO", "MARECHAL", "FORЗAS ESPECIAIS", "LENDA", "HEROI DE GUERRA" }; public OnPlayerConnect(playerid) { if((GetPlayerScore(playerid) == 0)) { SetPlayerColor(playerid, -1); RankClass[playerid] = 1; // ----- Aqui vai pegar o nome CONSCRITO lб em cima ? return 1; } return 1; }
new RankClassNames[][] =
{
"CONSCRITO", "RECRUTA", "SOLDADO", "CABO", "3є SARGENTO", "2є SARGENTO", "1є SARGENTO",
"SUB TENENTE", "ASPIRANTE", "2є TENENTE", "1є TENENTE", "CAPITГO", "MAJOR",
"TENENTE CORONEL", "CORONEL", "GENERAL DE BRIGADA", "GENERAL DE DIVISГO",
"GENERAL DE EXЙRCITO", "MARECHAL", "FORЗAS ESPECIAIS", "LENDA", "HEROI DE GUERRA"
};
printf("%s", RankClassNames[GetPlayerScore(0)]);
new RankClassNames[][] =
{
0 1 2 3 4
"CONSCRITO", "RECRUTA", "SOLDADO", "CABO", "3є SARGENTO", "2є SARGENTO", "1є SARGENTO",
"SUB TENENTE", "ASPIRANTE", "2є TENENTE", "1є TENENTE", "CAPITГO", "MAJOR",
"TENENTE CORONEL", "CORONEL", "GENERAL DE BRIGADA", "GENERAL DE DIVISГO",
"GENERAL DE EXЙRCITO", "MARECHAL", "FORЗAS ESPECIAIS", "LENDA", "HEROI DE GUERRA"
};
main(){
printf("%s, %s, %s, %s, %s", RankClassNames[0], RankClassNames[1], RankClassNames[2], RankClassNames[3], RankClassNames[4]);
}
PHP код:
|
new RankClass[MAX_PLAYERS] = { "CONSCRITO", "RECRUTA", "SOLDADO", "CABO", "3є SARGENTO", "2є SARGENTO", "1є SARGENTO", "SUB TENENTE", "ASPIRANTE", "2є TENENTE", "1є TENENTE", "CAPITГO", "MAJOR", "TENENTE CORONEL", "CORONEL", "GENERAL DE BRIGADA", "GENERAL DE DIVISГO", "GENERAL DE EXЙRCITO", "MARECHAL", "FORЗAS ESPECIAIS", "LENDA", "HEROI DE GUERRA" }; new ArmyName[MAX_PLAYERS] = { "EXЙRCITO SUL AMERICANO", "EXЙRCITO NORTE AMERICANO", "EXЙRCITO EUROPEU", "EXЙRCITO ASIБTICO","EXЙRCITO AFRICANO" }; new ClassName[MAX_PLAYERS] = { "MЙDICO", "ENGENHEIRO", "FUZILEIRO", "FRANCO ATIRADOR", "MERGULHADOR", "PILOTO", "COMANDANTE" }; // -------------------------------------------------------------------------- >> main() { print("\n - SA Battlefield uploaded successfully \n - By Lucas Emmanuel \n"); printf("%s, %s, %s, %s, %s", RankClass[0], RankClass[1], RankClass[2], RankClass[3], RankClass[4]); printf("%s, %s, %s, %s, %s", ArmyName[0], ArmyName[1], ArmyName[2], ArmyName[3]); printf("%s, %s, %s, %s, %s", ClassName[0], ClassName[1], ClassName[2], ClassName[3]); }
RankClass[MAX_PLAYERS]
RankClass[][]
RankClass[playerid] = 1;
new RankClassNames[][] ={
"CONSCRITO" , "RECRUTA" , "SOLDADO" , "CABO" , "3є SARGENTO" ,
"2є SARGENTO" , "1є SARGENTO" , "SUB TENENTE" , "ASPIRANTE" , "2є TENENTE" ,
"1є TENENTE" , "CAPITГO" , "MAJOR" , "TENENTE CORONEL" , "CORONEL" ,
"GENERAL DE BRIGADA" , "GENERAL DE DIVISГO" , "GENERAL DE EXЙRCITO" , "MARECHAL" , "FORЗAS ESPECIAIS" ,
"LENDA" , "HEROI DE GUERRA"
};
new RankClassColors[] = {
0xFF8080AA, 0xFFFF80AA, 0x80FF80AA, 0x00FF80AA, 0x80FFFFAA,
0x0080FFAA, 0xFF80C0AA, 0xFF80FFAA, 0xFF0000AA, 0xC6C600AA,
0x57AE00AA, 0x00CECEAA, 0x0080C0AA, 0x8080C0AA, 0xFF00FFAA,
0x804040AA, 0xFF8040AA, 0x008080AA, 0x005BB7AA, 0x0000A0AA,
0x808080AA, 0x6000BFAA
};
public OnPlayerSpawn(playerid)
{
new string[128], aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), "{4169E1}Olб {ffffff}%s {4169E1}seja bem vindo(a)%s{ffffff}%s", aname, (GetPlayerScore(playerid) == 0 ? (" ") : (" novamente ")), RankClassNames[GetPlayerScore(playerid)]);
SendClientMessage(playerid, -1, string);
SetPlayerColor(playerid, RankClassColors[GetPlayerScore(playerid)]);
return 1;
}
PHP код:
|