Jump to content

Admin in /shop


kenveloo

Recommended Posts

2 minutes ago, kenveloo said:

Daca stie cineva, cum pot adauga admin free in shop (la pp sa scrie FREE) ?

Nu cam e normal sa faci asta adica sasi cumpere fiecare player admin din shop

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

Salut, @kenveloo! Din ce inteleg eu vrei ca adminii sa-si poata cumpara lucruri din shop gratis. Daca am inteles corect uite cum faci:

 

La CMD:shop faci asta:

CMD:shop(playerid, params[]) {
  	// ce verificari mai ai tu gen daca e logat
  	if(PlayerInfo[playerid][pAdmin] >= x) return ShowPlayerDialog(playerid, DIALOG_ASHOP, DIALOG_STYLE_TABLIST_HEADERS, "Admin Shop", ...);
  	else return ShowPlayerDialog(playerid, DIALOG_SHOP, DIALOG_STYLE_TABLIST_HEADERS, ...);
 	return 1; 
}

Am pus x nivelul de admin minim pentru admin shop, deoarece nu stiu ce vrei tu. Va trebui sa definesti DIALOG_ASHOP, iar ... inseamna ce mai ai tu acolo in shop cu butoanele. 

 

Sper ca te-am ajutat. Iti urez o zi frumoasa si succes in continuare!

Link to comment
Share on other sites

Pui dupa ultimul \nAdmin 1 - FREE te duci la dialog, dupa ultimul case sau listitem

Ex daca ultimul este if(listitem == 10) tu pui if(listitem == 11) si apoi playerinfo[playerid][padmin] = 1;

UN SCM ca a cumparat admin free si salvare in baza de date, bafta.

Link to comment
Share on other sites

lasa aici codul sistemului tau din gamemode

                     

  Serverul meu de Discord: Click aici       a7DfKP7.gif                                                                      FGIfknL.gif

k35T5Nb.png                                                                                                                                                                                                                                                                                                I0aS856.gif

Link to comment
Share on other sites

Join the conversation

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

Guest
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

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.