Jump to content
  • 0

problema [/roll]


Question

Posted

Salut, as dorii sa creez un system de roll, dar, as vrea sa dai roll din 3 in 3 ore, cum as putea sa gandesc asta ? adica, el are 3 ore, sa poata da o data, dupa inca o data peste 3 ore, si tot asa.

Mersi anticipat.

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

Te folosesti de o variabila in care sa stochezi 'numarul de ore', in cazul tau 3.

Banuiesc ca editezi un gamemode, in ziua de azi cam orice gamemode are un sistem de 'PayDay'.

La functia respectiva scazi fiecarui player online variabila respectiva cu 1 (VariabilaTa[playerid] --)

La comanda /roll vei pune o restrictie: if(VariabilaTa[playerid] != 0) return SendClientMessage(playerid, -1, "Nu ai jucat 3 ore");

Tot la comanda /roll, dupa ce se executa comanda, vei seta variabila ta la valoarea 3 (VariabilaTa[playerid] = 3);

Ar fii cel mai indicat sa salvezi valorile respective in baza de date.

Sper ca te-am putut ajuta

Edited by EraSy

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.