Kidro SA-MP Posted March 31, 2018 Report Share Posted March 31, 2018 Bun, am facut eu o comanda /daily sa iti dea un bonus random, imi poate adauga cineva un deelay de 24h ? si sa o corecteze daca am gresit ceva cmd:daily(playerid, paramd[]) if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(DailyActiv > 0) { if(PlayerInfo[playerid][pPremiumAccount] ==1) { new randmoney = 1000000 + random(500000); GivePlayerCash(playerid, randmoney); new randpp = 7 + random(5); GivePlayerPP(playerid, randpp); new randrp = 5 + random(3); GivePlayerRP(playerid, randrp); Update(playerid, pLevelx); Update(playerid, pCashx); Update(playerid, pPremiumPointsx); ) else return SendClientMessage(playerid, COLOR_GREEN, "Mai poti folosii comanda aceasta ziua urmatoare"); return 1; } Quote Link to comment Share on other sites More sharing options...
LZRiulian Posted March 31, 2018 Report Share Posted March 31, 2018 2 hours ago, Kidro SA-MP said: Bun, am facut eu o comanda /daily sa iti dea un bonus random, imi poate adauga cineva un deelay de 24h ? si sa o corecteze daca am gresit ceva cmd:daily(playerid, paramd[]) if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(DailyActiv > 0) { if(PlayerInfo[playerid][pPremiumAccount] ==1) { new randmoney = 1000000 + random(500000); GivePlayerCash(playerid, randmoney); new randpp = 7 + random(5); GivePlayerPP(playerid, randpp); new randrp = 5 + random(3); GivePlayerRP(playerid, randrp); Update(playerid, pLevelx); Update(playerid, pCashx); Update(playerid, pPremiumPointsx); ) else return SendClientMessage(playerid, COLOR_GREEN, "Mai poti folosii comanda aceasta ziua urmatoare"); return 1; } Uitate la edison si vei vedea acolo , a pus asa un dailylogin si sa da odata la 1 zi Quote Link to comment Share on other sites More sharing options...
Kidro SA-MP Posted March 31, 2018 Author Report Share Posted March 31, 2018 M am uitat, am incercat mai de mult si mi a dat erori, tin sa mentionez ca lucrez pe gm big zone nu burned. Acum 25 minute, LZRiulian a spus: Uitate la edison si vei vedea acolo , a pus asa un dailylogin si sa da odata la 1 zi Quote Link to comment Share on other sites More sharing options...
LZRiulian Posted March 31, 2018 Report Share Posted March 31, 2018 Just now, Kidro SA-MP said: M am uitat, am incercat mai de mult si mi a dat erori, tin sa mentionez ca lucrez pe gm big zone nu burned. Pai da si tututorialul lui este tot pe gm bigzone Quote Link to comment Share on other sites More sharing options...
Kidro SA-MP Posted March 31, 2018 Author Report Share Posted March 31, 2018 Chiar acum, LZRiulian a spus: Pai da si tututorialul lui este tot pe gm bigzone Imi da erori, daca stii sa faci ajuta-ma daca nu aia e. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.