Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**************************************************
- PayDay System 1.0 by Edgar ~
- **************************************************/
- //Variabili
- new Text:orologio;
- new PagaRand[52][1] = {
- {2},
- {47},
- {48},
- {50},
- {58},
- {60},
- {68},
- {72},
- {73},
- {80},
- {81},
- {82},
- {83},
- {95},
- {100},
- {101},
- {102},
- {103},
- {104},
- {108},
- {109},
- {110},
- {121},
- {122},
- {123},
- {135},
- {142},
- {143},
- {144},
- {146},
- {153},
- {154},
- {155},
- {156},
- {158},
- {159},
- {160},
- {161},
- {170},
- {179},
- {180},
- {189},
- {202},
- {203},
- {204},
- {258},
- {259},
- {260},
- {293},
- {295},
- {296},
- {297}
- };
- //Forward
- forward PayDay();
- //Callback
- OnFilterScriptInit();{
- print("PayDay System by Edgar ~ Caricato");
- SetTimer("PayDay",720000,1);//Timer
- orologio = TextDrawCreate(544.000000, 16.000000, "00:00:00");
- TextDrawBackgroundColor(orologio, 255);
- TextDrawFont(orologio, 1);
- TextDrawLetterSize(orologio, 0.200000, 1.100000);
- TextDrawColor(orologio, -1);
- TextDrawSetOutline(orologio, 0);
- TextDrawSetProportional(orologio, 1);
- TextDrawSetShadow(orologio, 1);
- return 1;}
- public OnPlayerConnect(playerid){
- TextDrawShowForPlayer(playerid, Text:orologio);
- return 1;}
- public OnPlayerUpdate(playerid){
- new stringa[126];
- new ora,minuto,secondo;
- gettime(ora,minuto,secondo);
- format(stringa,sizeof(stringa), "%d:%d:%d",ora,minuto,secondo);
- TextDrawSetString(Text:orologio,stringa);
- return 1;}
- public PayDay(){
- new RandSoldi;
- RandSoldi = random(sizeof(PagaRand));
- GivePlayerMoney(playerid, RandSoldi);
- return 1;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement