Jump to content
  • 0

Question

Posted

Salut. Am vrus sa fac la comanda help un dialog dar vad ca ma cam enerveaza si nu vrea sa mearga cum trebuie.

Dupa ce bag tot in gm si dau compile se compileaza gm fara probleme. Problema este ca nu ma lsa sa intru pe server. Dupa ce introduc parola ramane blocat.

Uitati aici ce am adaugat in gm si spuneti-mi unde nu este bine. Astept un raspuns. Multumesc!!!

[pawn] if(strcmp(cmd, "/help", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

            format(string,sizeof(string),"•[1]•Server\n•[2]•Account\n•[3]•General\n•[4]•Chat\n•[5]•Bank\n•[6]•Other\n•[7]•Factions\n{FFFFFF}•[8]•Garaj\n•[9]•Job\n•[10]•Donate\n•[11]•Help\n•[12]•Comenzi Factiuni");

      ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST,"{FFFFFF}All {A8E282}Commands",string,"Ok","Close");

}

return 1;

}[/pawn]

Aici o sa va pun doar inceputu si sfarsitu pentru ca este prea lunga si nu cred ca este nevoie de toata

[pawn]

if(dialogid==1000)

{

if(response)

{

if(listitem == 0)

{

strcat(string , "{FFFFFF} /contact /reguli /dm /db /safezone /forum /vip /coin /coinhelp /coinprods" , 1900 );

ShowPlayerDialog(playerid, 001, DIALOG_STYLE_MSGBOX , "*** Server ***", string , " OK " , " Cancel " );

}

if(listitem == 11)

{

if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader]==1)

{

    strcat(string , "{FFFFFF} (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /a(rrest)1,2,3 /duty /wanted /cuff /tazer" , 1900 );

    strcat(string , "{FFFFFF} /frisk /take /ticket (/gov)ernment /deliver /camera /ram /aswat /dswat /swat" , 1900 );

    strcat(string , "{FFFFFF} /undercover /copuntie /backup /rb /rrb /rrball /backupclear /jaillist /move1 ( 1 , 2 , 3 )" , 1900 );

    strcat(string , "{FFFFFF} /getincar /viewfwarn" , 1900 );

ShowPlayerDialog(playerid, 028, DIALOG_STYLE_MSGBOX , "*** Police Departament ***", string , " OK " , " Cancel " );

}

if (PlayerInfo[playerid][pNfs] == 4)

{

strcat(string , "{FFFFFF} /nfsinvite /nfs /nfsmembers /recruteznfs" , 1900 );

ShowPlayerDialog(playerid, 044, DIALOG_STYLE_MSGBOX , "*** Tow Car Company ***", string , " OK " , " Cancel " );

}

}

}

}[/pawn]

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.