Jump to content

Tutorial Scripting #3


Recommended Posts

In acest tutorial va voi arata cum se face o comanda complexa cu STRCMP.

      Sa incepem.


Cautam linia public OnPlayerCommandText, sub care adaugam:


  if(strcmp("/tutorial", cmdtext, true, 5) == 0)


     ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Ce vrei sa stii?", "X\nY\nZ", "Alege", "Inchide");

    return 1;





Dupa care vom cauta linia public OnDialogResponse, sub care vom adauga:



if(dialogid==1 && response==1)








  case 0:



      SendClientMessage(playerid, COLOR_PURPLE, "neata");





 case 1:



      SendClientMessage(playerid, COLOR_PURPLE, "Ce faci?");





 case 2:



  SendClientMessage(playerid, COLOR_PURPLE, "Acest tutorial este facut de KruZZ.Capone!");


return 0;


                                 Cam acesta a fost tutorialul, pentru orice nelamurire lasati un reply.










Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.