17.03.2016, 06:10
i had this payday system
i want this
cmd
ayday [playerid,params]{
{
shows the time remaining for payday
how to make it ?
Код:
//Defines #define COLOR_ORANGE 0xFF9900AA #define COLOR_RED 0xAA3333AA #define COLOR_WHITE 0xFFFFFFAA public OnFilterScriptInit() { print("PayDay System Loaded"); //==================================================== SetTimer("paytime", 60000, 1); return 1; } forward paytime(playerid); public paytime(playerid) { new hh, mm, ss; gettime( hh, mm, ss ); if( mm == 0 ) { for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) { new string[128]; new RandomPay = random(50000 - 10000) + 10000; GivePlayerMoney( playerid, RandomPay ); SendClientMessage(playerid, COLOR_RED,"-------------------------"); format(string, sizeof(string), " You Have Got Paycheck Of => $%i", RandomPay); SendClientMessage(i, COLOR_RED, string); SendClientMessage(playerid, COLOR_WHITE,"-------------------------"); } } return 1; }
cmd

{
shows the time remaining for payday
how to make it ?