[Ajuda] Comando
#3

Quote:
Originally Posted by Sky_.
Посмотреть сообщение
pawn Код:
if (strcmp(cmdtext,"/descerdp", true)==0){
    new
        aname[MAX_PLAYER_NAME]
    ;
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), PASTA_CONTAS, aname);

    if(dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope
    || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "aAdmin") == 1){
        MoveObject(elevadordp,1570.8325195313,-1635.4766845703,12.728549957275,3.0);
        SendClientMessage(playerid,0xFFFFFFAA, "[INFO] Descendo o elevador da DP!");
    }
    else SendClientMessage(playerid, Vermelho, "(ERRO) Vocк nгo tem permissгo.");
    return 1;
}
Tipo cara, blz.
Sу que eu percebi aqui
Os nomes que estгo
pawn Код:
if(dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Delegado || dini_Int(file, "Profissao") == Bope
    || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "aAdmin") == 1)
Que sгo as profissoes que eram sу pra elas usar, estгo bloqueadas para elas
Entendeu?
As profissхes que estб ai nгo conseguem usar, e as que nгo tгo conseguem
Parece que inverteu...
Serб que tem como me ajudar?
Reply


Messages In This Thread
Comando - by Serjnrg - 18.03.2013, 16:01
Re: Comando - by Sky™ - 18.03.2013, 16:06
Re: Comando - by Serjnrg - 18.03.2013, 16:17
Re: Comando - by Coringa_Vilao - 18.03.2013, 16:46
Re: Comando - by Serjnrg - 18.03.2013, 16:55
Re: Comando - by Sky™ - 18.03.2013, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)