Posts: 576
Threads: 131
Joined: May 2010
Reputation:
0
Hello i add 2-3 payday systems and no one work. I wait for the round hour but when it's comes nothing happend. So i need Payday system - when player are in server for 1 hour gives him award or when player its in server about 20 minutes on the round hour gives him award. Please help me.
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
This isn't a "Scripting Help, We give you codes 4 free, YES!"
We won't provide you any codes, Scripting Help meant to be a board for these scripters who are having problem on their own codes, not on "Give me plz a payday code plz".
Give us your code, Maybe we can work on it.
Posts: 6,242
Threads: 8
Joined: Jun 2008
Quote:
Originally Posted by JaKe Elite
Hope it works
|
Are you confident in that code actually working?
Код:
{
new hh, mm, ss;
gettime( hh, mm, ss );//-> Gives at ??:00 -> every hour (10:00/11:00 and etc)
switch(mm)
{
case 0,20,40:
{
for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
{
new string[128];
new RandomPay = random(50000 - 10000) + 10000;// new RandomPay = random(MAX - MIN) + MIN;
GivePlayerMoney( playerid, RandomPay );
SendClientMessage(playerid, COLOR_WHITE,"Look You recived a paycheck!");
format(string, sizeof(string), "You have recieve a check of $%i", RandomPay);
SendClientMessage(i, COLOR_WHITE, string);
SendClientMessage(playerid, COLOR_WHITE,"-------------------------");
}
}
}
return 1;
}
Try that, that should do on the hour, 20 past, and 20 to...
Posts: 576
Threads: 131
Joined: May 2010
Reputation:
0
Again dont work, dont give me award or something..
Posts: 889
Threads: 4
Joined: Mar 2013
Reputation:
0
Be more specific. WHAT is not working? Is it not being called, don't you get the cash? Are you using a conflicting anti cheat maybe?
Posts: 576
Threads: 131
Joined: May 2010
Reputation:
0
Umm dont give me message, cash for payday.I have anticheat but i'm sure the problem it's not there.