david1995 Posted April 4, 2016 Posted April 4, 2016 (edited) Salut am o problema la comanda bonus La bonus vreau sa o pun ca playerii sa o poata folosii dupa o ora jucata. Comanda Quote CMD:bonus(playerid,params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if (PlayerToPoint(3, playerid,1745.1322,-1860.8306,13.5783)) { if(PlayerInfo[playerid][pLevel] <= 2) { GivePlayerCash(playerid, 30000000); PlayerInfo[playerid][pLevel] = 8; Update(playerid, pLevelx); Update(playerid, pCashx); SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); SendClientMessage(playerid, COLOR_BLUE,"Ai primit $30,000,000 si level 8 de bun venit!"); } else { SendClientMessage(playerid, COLOR_RED,"Nu poti folosi aceasta comanda daca ai level 3+ !Nu fi nesimtit !"); return 1; } } else return SendClientMessage(playerid, COLOR_BLUE,"Nu sunteti la locul de /bonus pentru a va luat Cadoul de bun venit!"); } return 1; } Edited April 4, 2016 by david1995
WiDuAlK Posted April 4, 2016 Posted April 4, 2016 Construieste un timer, fa-i update catre baza de date si te folosesti de el. Ca model poti sa te iei dupa tutorialul meu de payday, la partea a 2-a. @WiDuAlK Tutorial`s: PAWN pentru SA:MP in Notepad++Tutorial Register-Login MYSQL R39 Tutorial etape de register Cum sa creezi un PayDay (2 METODE)Cum sa creezi o factiune de la 0 PART 1 Cum sa creezi o factiune de la 0 PART 2 Cum sa creezi o factiune de la 0 partea a 3-a (ULTIMA)Functii folositoare din NEW.PWN Tutorial Engine Vehicle Optimizare simplitate si stil Foreach inlocuieste loop-ul SSCANF si ZCMD Cum sa creezi o poarta miscatoare Tutorial cum sa creezi un radio pe server si cum sa iti creezi melodi pentru ascultat pe server Cum sa tii un server din PC folosind HAMACHI Documentatie* Despre hack-uri Servicii: Servicii Scripting & Mapping Produse: Farmer Job Realistic Drugs Dealer System [SA-MP] UNIQUE
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now