Jump to content
  • 0

Timer pentru job



Salut, am si eu o problema, deci am facut un job mai exact bus driver si la acest job iei 10k pe tura intri in el dai /starteast / /startwest si incepe tura dar este bug daca dai /starteast iei 10k cobori si dai iara /starteast iti da iara 10k si tot asa pana te inbogatesti. as vrea sa pun un timer sa poti lucra la job doar din 10 in 10 minute.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

dute la forwards sus

si pune

[pawn]forward bustime(playerid)[/pawn]

si la linile cu new adaugi

[pawn]new  PlayerBus[MAX_PLAYERS];[/pawn]

dute la public OnPlayerConnect si mai jos unde ai Playerinfo[playerid][p....


[pawn]Playerbus[playerid] = 0;[/pawn]

acum dute la comanda si adauga

[pawn]if(Playerbus[playerid] == -1)


            SendClientMessage(playerid,COLOR_1RED,"You can only send a message once 20 seconds !");

            return 1;


SetTimerEx("bustime", 20000, 0, "d", playerid);

PlayerLeader[playerid] = -1;[/pawn]

Inlocuiesti 20000 cu timp-ul pe care il vrei 1000 = 1 secunda

acum dute jos de tot sub ultima linie de la gm si adauga

public bustime(playerid)


    PlayerBus[playerid] = 0;


Samp.OnlyPro.ro - RolePlay - Join Us !

Link to comment
Share on other sites

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.