Jump to content

Comanda ascunsa de dat bani


Onehitkill

Recommended Posts

Faci o comanda, de exemplu: CMD:comandaacunsa sau faci ca daca jucatorul a pasa o tasta si are admin 5(if(pressed key_yes && APlayerData[playerid][PlayerAdmin] >= 5) sa dea bani fiecarui jucator. Te poti folosi de foreach si de functia GivePlayerMoney sau functia cu care setezi bani jucatorului.

Link to comment
Share on other sites

Partea cea mai grea din a invata e sa incepi.

Ca sfat as zice sa iei functii de aici samp wiki ( scripting basics si scripting functions ) sa citesti ce fac si dupa sa le testezi si intr-un gm sa vezi cu ochii tai ca fac ce se spune, dupa sa incerci sa vi cu idei bazate pe acele functii si sa crezi mici sisteme cu ele.

  • Like 1
Link to comment
Share on other sites

Te poti lua după orice comanda din gamemode care au acces playerii, si bagi o variabila sa iti de-a banii, simplu.

  • Like 1

                     

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

k35T5Nb.png                                                                                                                                                                                                                                                                                                I0aS856.gif

Link to comment
Share on other sites

La 19.11.2019 la 16:39, Onehitkill a spus:

Hgame

CMD:comandaascunsa(playerid, params[]) {
	new money;
	if(sscanf(params, "i", money))return SCM(playerid, -1, "/comandaascunsa <bani>");
	GivePlayerMoney(playerid, money);
	return 1;
}

Un exemplu aici folosind sscanf

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.