[Ajuda] Pegar nome de string variбvel
#8



PHP код:
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[] = {
    
0xFF8080AA0xFFFF80AA0x80FF80AA0x00FF80AA0x80FFFFAA,
    
0x0080FFAA0xFF80C0AA0xFF80FFAA0xFF0000AA0xC6C600AA,
    
0x57AE00AA0x00CECEAA0x0080C0AA0x8080C0AA0xFF00FFAA,
    
0x804040AA0xFF8040AA0x008080AA0x005BB7AA0x0000A0AA,
    
0x808080AA0x6000BFAA
};
public 
OnPlayerSpawn(playerid)
{
    new 
string[128], aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridanamesizeof(aname));
    
format(stringsizeof(string), "{4169E1}Olб {ffffff}%s {4169E1}seja bem vindo(a)%s{ffffff}%s"aname, (GetPlayerScore(playerid) == ? (" ") : (" novamente ")), RankClassNames[GetPlayerScore(playerid)]);
    
SendClientMessage(playerid, -1string);
    
SetPlayerColor(playeridRankClassColors[GetPlayerScore(playerid)]);
    return 
1;

Reply


Messages In This Thread
Pegar nome de string variбvel - by dimy - 01.10.2018, 21:33
Re: Pegar nome de string variбvel - by 1sbedx - 01.10.2018, 21:52
Re: Pegar nome de string variбvel - by dimy - 01.10.2018, 21:58
Re: Pegar nome de string variбvel - by 1sbedx - 01.10.2018, 22:06
Re: Pegar nome de string variбvel - by dimy - 01.10.2018, 23:39
Re: Pegar nome de string variбvel - by 1sbedx - 02.10.2018, 00:05
Re: Pegar nome de string variбvel - by DarkBr - 02.10.2018, 00:15
Re: Pegar nome de string variбvel - by [BOPE]Seu._.Madruga - 02.10.2018, 02:47
Re: Pegar nome de string variбvel - by dimy - 02.10.2018, 04:11

Forum Jump:


Users browsing this thread: 2 Guest(s)