[Ajuda] Como passo esse dialog para um comando ?
#9

Quote:
Originally Posted by FerrariL
View Post
Qual й a funзгo que seta a arma no slot ?
acho q й isso aqui

Code:
for(new x = 1; x != 13; x++){
Code:
dialogArmas(playerid){

	if(!countWeapons(playerid))
		return SendClientMessage(playerid, COLOR_YELLOW, "*Vocк nгo tem uma arma com vocк."), CancelSelectTextDraw(playerid),SelectTextDraw(playerid, 0xAAAAAAFF);

	new Str[95],
		weap,
		ammo;

	MEGAString[0] = EOS;

	for(new x = 1; x != 13; x++){

		GetPlayerWeaponData(playerid, x, weap, ammo);

		if(weap && ammo){

			format(Str, 95, "{FFFFFF}Arma: {A0A0A0}%s {FFFFFF}Balas: {A0A0A0}%03d\n", GunNames[weap], ammo);
	  		strcat(MEGAString, Str);
		}else{

			strcat(MEGAString, "{FFFFFF}Arma: {A0A0A0}-------- {FFFFFF}Balas: {A0A0A0}---\n");
		}
	}
	ShowPlayerDialog(playerid, 306, DIALOG_STYLE_LIST, "Escolha a arma para guardar", MEGAString, "Guardar", "Sair");

	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)