Jump to content

Intrebare variabila


iPanter
 Share

Recommended Posts

  • Administrator
new numeVariabila[MAX_PLAYERS];

Cand deschide crate-ul setezi variabila pe 1

numeVariabila[playerid] = 1;

Verifici la comanda /opencrate

if(numeVariabila[playerid] == 1) return SendClientMessage(playerid, -1, "Nu poti deschide 2 cutii in acelasi timp");

Iar cand cutia s-a deschis complet si a primit premiul, ii resetezi variabila.

numeVariabila[playerid] = 0;

Nu uita sa resetezi variabila la OnPlayerDisconnect

numeVariabila[playerid] = 0;

:wink:

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...