Jump to content
  • 0

[help]interval rob (timer)


Question

Posted

vreau sa editez un rob system ca sa se poata jefui banca o singura data la interval de 2 ore? are cineva idee cum se poate face asta cat mai simplu? este acel rob system cu van pentru godfather. multumesc anticipat

3 answers to this question

Recommended Posts

Posted

Adauga urmatoarele;

new robtime[MAX_PLAYERS];
pe urma
public robreset(playerid)
{
	robtime[playerid] = 0;
}
pe urma la comanda /rob
if(robtime[playerid] == -1)
        			{
   					SendClientMessage(playerid,COLOR_GREEN,"Ai dat deja un rob, asteapta 10 minute);
   					return 1;
        			}
pe la finalul comenzii /rob
robtime[playerid] = -1;
    	   			SetTimerEx("robreset", 300000, 0, "%d", playerid);

// Undeva la 10 minute Timer-ul

Succes ! ( sper ca nu ti-am gresit pe undeva, daca ai probleme lasa reply ! )

<a href="http://www.userbars.be"><img src="http://img534.imageshack.us/img534/9098/36589.gif" alt="Free userbars" border="0"></a>

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.