Jump to content
  • 0

Help me !


dr.samp

Question

2 answers to this question

Recommended Posts

Buna seara stimate.

Voi incerca sa va dau un mic exemplu,sper sa prindeti ideea:

Deci spre exemplu avem dialogul dumneavoastra si trebuie sa introducem litera "A" sa luam un set anumit de arme.

La public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) la ID-ul dialogului respectiv vom adauga urmatoarele:

[pawn]if(!strcmp(inputtext, "A",true))

      {

        GivePlayerWeapon(playerid, 24, 100); GivePlayerWeapon(playerid, 30, 100); GivePlayerWeapon(playerid, 31, 100); //Dupa ce introduce "A" in casuta,playerul primeste un Deagle, AK47 si M4 a cate 100 gloante fiecare.

        SendClientMessage(playerid, COLOR_WHITE, "Ati achizitionat Setul de Arme cu numarul 1.");

      }[/pawn]

Sper ca informatia sa va fie de folos. Multumesc pentru atentie. (Cu respect, ARTIST)

ep41yhufqpagka5wfoornw1wjfjie.png

HTjr_G.png
12975.png
 
Link to comment
Share on other sites

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.