07.03.2014, 02:35
(
Последний раз редактировалось SFRPVN; 07.03.2014 в 07:12.
)
By the way I always wanted to ask, I need to score + 1 code per order and use it fulfills the conditions of the code is 8 now online for the score 1 -> 2 and 1 score followed every condition to execute the command + 4 hours will be online.
for example: score 1 -> 2 -> 3 -> 4 -> etc
conditions now done online orders is 8 -> 12 -> 16 -> 20 -> etc
Thanks
I have devised. It is also quite easy.
For those who need to share.
If problem contact me
under main()
In OnlineTimeUpdate
Command with ZCMD
Thanks for your help.
for example: score 1 -> 2 -> 3 -> 4 -> etc
conditions now done online orders is 8 -> 12 -> 16 -> 20 -> etc
Thanks
I have devised. It is also quite easy.
For those who need to share.
If problem contact me
under main()
Код:
// thoi gian va lv new Hours[MAX_PLAYERS]; new Minutes[MAX_PLAYERS]; new Lenlv[MAX_PLAYERS]; new Lenlv1[MAX_PLAYERS];
Код:
forward OnlineTimeUpdate(playerid); public OnlineTimeUpdate(playerid) { Minutes[playerid] ++; if(Minutes[playerid] == 60) { Minutes[playerid] = 0; Hours[playerid] ++; Lenlv1[playerid] ++; return 1; }
Код:
CMD:muacapdo(playerid,params[]) { if((Lenlv1[playerid] == Lenlv[playerid])) { Lenlv[playerid] = Lenlv[playerid] + 2; Lenlv1[playerid] = Lenlv1[playerid] - 2; SetPlayerScore(playerid, GetPlayerScore(playerid)+1); GivePlayerMoney(playerid, -50000); SendClientMessage(playerid, COLOR_GREEN, "Chuc mung! Ban da len them LV moi"); } else { SendClientMessage(playerid, COLOR_SEXYGREEN, "Ban khong mang du tien hoac chua du thoi gian Online"); } return 1; }