- 0
Nu ramane premium user!
-
Similar Content
-
- 10 replies
- 1.385 views
-
- 9 replies
- 1.471 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Sn4Ke
Problema intalnita (descriere):Am comanda /makepremium, dau la un player cont premium iar acesta cand iasa din joc si sintra iara nu mai are cont premium, mai exact dupa relog nu mai are cont premium!
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul:
if(strcmp(cmd, "/makepremium", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /makepremium[playerid/numejucator] [day] [month] [year]"); return 1; } new para1; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /makepremium [playerid/numejucator] [day] [month] [year]"); new daymax = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /makepremium [playerid/numejucator] [day] [month] [year]"); new monthmax = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /makepremium [playerid/numejucator] [day] [month] [year]"); new yearmax = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 5 || IsPlayerAdmin(playerid)) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pDonateRank] = 2; Update(para1, pDonateRankx); printf("[Info:] %s l-a promovat pe %s la gradul de MAXer.", sendername, giveplayer); format(string, sizeof(string), "{DC740C}Admin:{FFFFFF} Felicitari! %d ti-a dat grad {FFCC30}PREMIUM {FFFFFF} Timpul tau ca utilizator premium este: %d/%d/%d. scrie /help sa vezi comenzile", sendername, daymax, monthmax, yearmax); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "{DC740C}Admin:{FFFFFF} %s a fost promovat la gradul de Premium.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); MAXerDay[para1] = daymax; MAXerMonth[para1] = monthmax; MAXerYear[para1] = yearmax; Update(para1, pMAXerYearx); Update(para1, pMAXerMonthx); Update(para1, pMAXerDayx); } } } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu ai rangul administrativ necesar!"); } } return 1; } if(strcmp(cmd, "/unmakepremium", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /unmakepremium [playerid/numejucator]"); return 1; } new para1; para1 = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 5 || IsPlayerAdmin(playerid)) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pDonateRank] = 0; Update(para1, pDonateRankx); printf("[Info:] %s l-a scos pe %s de la gradul de premium ", sendername, giveplayer); format(string, sizeof(string), "{DC740C}Admin:{FFFFFF} Gradul tau premium a fost luat de catre%s.", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "{DC740C}Admin:{FFFFFF} %s a ramas fara grad premium.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } } } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu ai rangul administrativ necesar!"); } } return 1; }Imagini / Video (optional):-Ati incercat sa rezolvati singur?:Da
2 answers to this question
Recommended Posts