SA-MP Forums Archive
[Ajuda] /Tunar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] /Tunar (/showthread.php?tid=359073)



/Tunar - alexandreez - 12.07.2012

Como faзo para deixar esse comando para todos player poder usar:
pawn Код:
if (strcmp("/tunar", cmdtext, true, 10) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "Profissao") == Mecanico || dini_Int(file, "VIP") == 1 || dini_Int(file, "aAdmin") == 1 || IsPlayerAdmin(playerid) == 1){
ShowPlayerDialog(playerid, tunar, DIALOG_STYLE_LIST, "Tuning Menu", "Rodas\nCores\nPaintjobs\nNitro\nSuspensгo\nAutoTuning", "OK", "Cancelar");
return 1;
}
}



Re : /Tunar - dhiogo3d - 12.07.2012

Eu acho que й sу tirar esse negoзo de aAdmin ou colocar 0


Re: /Tunar - ViictorDaay- - 12.07.2012

pawn Код:
if (strcmp("/tunar", cmdtext, true, 10) == 0){
           ShowPlayerDialog(playerid, tunar, DIALOG_STYLE_LIST, "Tuning Menu",              
           "Rodas\nCores\nPaintjobs\nNitro\nSuspensгo\nAutoTuning", "OK", "Cancelar");
return 1;
}



Re: /Tunar - alexandreez - 12.07.2012

Deu cert OBG