[Ajuda] Sistema de Patentes por Score/gangue
#8

Quote:
Originally Posted by iHarzard
Посмотреть сообщение
pawn Код:
new CargoTerrorista[MAX_PLAYERS];

CMD:myrank(playerid) {
    new String[30];
    format(String, sizeof(String),"Seu Cargo: %d [%s]", CargoTerrorista[playerid], GetCargoTerrorista(playerid));
    SendClientMessage(playerid, 0x1E90FFAA,String);
    return true;
}

stock GetCargoTerrorista(playerid) {
    new CargoNomeT[100];
    if(CargoTerrorista[playerid] == 1)  CargoNomeT = "Lider Israelita";
    if(CargoTerrorista[playerid] == 2)  CargoNomeT = "Sub-Lider Israelita";
    if(CargoTerrorista[playerid] == 3)  CargoNomeT = "General Israelita";
    if(CargoTerrorista[playerid] == 4)  CargoNomeT = "Comandante";
    if(CargoTerrorista[playerid] == 5)  CargoNomeT = "Chefe de Armamento";
    if(CargoTerrorista[playerid] == 6)  CargoNomeT = "Comandante da Tropa";
    if(CargoTerrorista[playerid] == 7)  CargoNomeT = "Atirador Preciso";
    if(CargoTerrorista[playerid] == 8)  CargoNomeT = "Bombardeador";
    if(CargoTerrorista[playerid] == 9)  CargoNomeT = "Treinador Militar";
    if(CargoTerrorista[playerid] == 10)  CargoNomeT = "Espiao Israelita";
    if(CargoTerrorista[playerid] == 11)  CargoNomeT = "Homem-Bomba";
    if(CargoTerrorista[playerid] == 12)  CargoNomeT = "Atirador Expert";
    if(CargoTerrorista[playerid] == 13)  CargoNomeT = "Atirador";
    if(CargoTerrorista[playerid] == 14)  CargoNomeT = "Atirador Novato";
    if(CargoTerrorista[playerid] == 15)  CargoNomeT = "Terrorista Classe A";
    if(CargoTerrorista[playerid] == 16)  CargoNomeT = "Terrorista Classe B";
    if(CargoTerrorista[playerid] == 17)  CargoNomeT = "Terrorista Classe C";
    return CargoNomeT;
}
Looool parece que estб funcionando apenas mudar o string ali para 50 pq ele fica [Terrorista Cla... mas parece estar funcional, obrigado mano ++Rep a todos que ajudaram ai vlw

Uma dъvida..... Como seria para fazer o seguinte:

o player atinge 1400 Score assim atingindo o cargo mбximo, mas qd alguйm atingir 14001 o cargo mбximo serб setado a pessoa que estб com maior score e a outra perde um cargo se tornando cargo 2 por exemplo com 1400 scores e assim sucessivamente....
Reply


Messages In This Thread
Sistema de Patentes por Score/gangue - by focaximubh - 28.06.2013, 13:24
Re: Sistema de Patentes por Score/gangue - by mau.tito - 28.06.2013, 13:29
Re: Sistema de Patentes por Score/gangue - by focaximubh - 28.06.2013, 13:36
Re: Sistema de Patentes por Score/gangue - by BieeelEvolution - 28.06.2013, 13:43
Re: Sistema de Patentes por Score/gangue - by DannielCooper - 28.06.2013, 13:45
Re: Sistema de Patentes por Score/gangue - by focaximubh - 28.06.2013, 13:49
Re: Sistema de Patentes por Score/gangue - by iHarzard - 28.06.2013, 14:08
Re: Sistema de Patentes por Score/gangue - by focaximubh - 29.06.2013, 02:07

Forum Jump:


Users browsing this thread: 4 Guest(s)