mefedrona
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by mefedrona
-
-
Nu am functia : #define MAX_PLAYER_VEHICLES
-
Problema intalnita (descriere): Am un sistem /getgift , poti acesa comanda odata la 3 ore , dupa ce ai acesat /getgift , primesti cadoul random , dar dupa daca dai relog si intri inapoi , iara poti folosi comanda .. nu mai trebuie sa astept 3 ore.
Ero(area / rile) / warning-(ul / urile): 0
Liniile de cod / sursa / script-ul(obligatoriu):CMD:saddsaasdsadsadsaddsadsadsa(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_WHITE,"{37B9C8}Please get out of the car."); if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1516.1532,-1655.5228,13.5392)) return SCM(playerid,COLOR_WHITE, "Nu esti la locul unde poti folosi [/getgift] (LSPD/Spawn Civil)."); { { new Random = random(6); switch(Random) { case 0: { GivePlayerCash(playerid,25000); Update(playerid,pCashx); SendClientMessage(playerid, COLOR_WHITE, "Felicitari!Ai castigat 25.000$"); } case 1: { SendClientMessage(playerid, COLOR_WHITE, "Felicitari!Ai castigat 5 coins"); } case 2: { PlayerInfo[playerid][pMats] += 50000; Update(playerid,pMatsx); SendClientMessage(playerid, COLOR_WHITE, "Felicitari!Ai castigat 50000 materiale"); } case 3: { PlayerInfo[playerid][pDrugs] += 10; new wakaname[25],str2[128]; GetPlayerName(playerid,wakaname,sizeof(wakaname)); format(str2,sizeof(str2),"UPDATE users SET `Drugs`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pDrugs],wakaname); mysql_query(SQL,str2); SendClientMessage(playerid, COLOR_WHITE, "Felicitari!Ai castigat 10 grame de droguri"); } case 4: { PlayerInfo[playerid][pExp] += 2; SendClientMessage(playerid, COLOR_WHITE, "Felicitari!Ai castigat 2 respect points"); } case 5: { SendClientMessage(playerid, COLOR_WHITE, "Felicitari!Ai castigat inca 2 cadouri! [/getgift]"); } } } } return 1; }
Imagini / Video (optional): 0
Ati incercat sa rezolvati singur?: Nu stiu ce sa fac... -
Problema intalnita (descriere): Am gamemode E-Saint , pot detine 2 masini personale , 1 normala , iar 1 premium , cum pot face sa detin mai multe masini ?
Ero(area / rile) / warning-(ul / urile): 0
Liniile de cod / sursa / script-ul(obligatoriu): Nu stiu exact ce sa postez ..
Imagini / Video (optional): ...
Ati incercat sa rezolvati singur?: Am incercat dar ma cam bate -
3 ore scuze , imi ca.m sare mama de pe tastatura ... pai am phours in tabelul mysql ... dar nu stiu e ce nu ar merge.
-
Problema intalnita (descriere): Am o comanda care iti da o data la 3 euro un cadou daca tastezi in locul unde se afla comanda /getgift
Dar faza este ca iti da cadoul , dar daca dai restart si intri inapoi poti tasta dinou /getgift fara a mai astepta 3 euro
Ero(area / rile) / warning-(ul / urile): 0
Liniile de cod / sursa / script-ul(obligatoriu):CMD:getgift(playerid, params[]) { if(playerVariables[playerid][pPlayingHours] >= 3) { if(assetVariables[1][aAssetValue] == 1) { if(IsPlayerInRangeOfPoint(playerid, 15.0, 1123.7257,-1468.3381,15.7514)) { format(szMessage, 256, "Poti folosi /getgift peste %d ore.", playerVariables[playerid][pGiftHours]); if(playerVariables[playerid][pGiftHours] == 0) { new gift = random(10); if(gift == 0) { playerVariables[playerid][pRPoints] += 5; SendClientMessage(playerid, COLOR_WHITE, "Ai castigat 5 respect points-uri la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won 5 respect points at giftbox. ))",GetName(playerid)); SCMTA(COLOR_LIGHT,szMessage); } if(gift == 1) { new cash = random(1000000); playerVariables[playerid][pMoney] += cash; SendClientMessage(playerid, COLOR_WHITE, "Ai castigat o suma de bani la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won $%s at giftbox. ))",GetName(playerid), NumberFormat(cash)); SCMTA(COLOR_LIGHT,szMessage); } if(gift == 2) { playerVariables[playerid][pRobPoints] += 100; if(playerVariables[playerid][pGroup] == 1 || playerVariables[playerid][pGroup] == 2 || playerVariables[playerid][pGroup] == 3 || playerVariables[playerid][pGroup] == 5) { SendClientMessage(playerid, COLOR_WHITE, "Ai castigat 100 lawer points-uri la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won 100 lawer points at giftbox. ))",GetName(playerid)); SCMTA(COLOR_LIGHT,szMessage); } else { SendClientMessage(playerid, COLOR_WHITE, "Ai castigat 100 rob points-uri la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won 100 rob points at giftbox. ))",GetName(playerid)); SCMTA(COLOR_LIGHT,szMessage); } } if(gift == 3) { playerVariables[playerid][pDriveLicense] += 500; playerVariables[playerid][pGunLicense] += 500; playerVariables[playerid][pFlyLicense] += 500; playerVariables[playerid][pBoatLicense] += 500; SendClientMessage(playerid, COLOR_WHITE, "Ai castigat inca 500 de ore la fiecare licenta de la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won 5 respect points at giftbox. ))",GetName(playerid)); SCMTA(COLOR_LIGHT,szMessage); } if(gift == 4) { playerVariables[playerid][pWarns] = 0; SendClientMessage(playerid, COLOR_WHITE, "Ai castigat clear warns de la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won a warns clear at giftbox. ))",GetName(playerid)); SCMTA(COLOR_LIGHT,szMessage); new str[128]; format(str,128,"UPDATE playeraccounts SET playerVIP = 0 WHERE playerID = %d",playerVariables[playerid][pInternalID]); mysql_tquery(handle, str); } if(gift == 5) { playerVariables[playerid][pMaterials] += 100000; SendClientMessage(playerid, COLOR_WHITE, "Ai castigat 100.000 materiale de la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won 100.000 materials at giftbox. ))",GetName(playerid)); SCMTA(COLOR_LIGHT,szMessage); } if(gift == 6) { playerVariables[playerid][pFPunish] = 0; SendClientMessage(playerid, COLOR_WHITE, "Ai castigat clear FP de la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won a clear FP at giftbox. ))",GetName(playerid)); SCMTA(COLOR_LIGHT,szMessage); } if(gift == 7) { playerVariables[playerid][pLevel] ++; SendClientMessage(playerid, COLOR_WHITE, "Ai castigat un level up de la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won a level up at giftbox. ))",GetName(playerid)); SCMTA(COLOR_LIGHT,szMessage); } if(gift == 8) { new cash = random(69); playerVariables[playerid][pPremiumPoints] += cash; SendClientMessage(playerid, COLOR_WHITE, "Ai castigat puncte premium la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won %d premium points at giftbox. ))",GetName(playerid), cash); SCMTA(COLOR_LIGHT,szMessage); } if(gift == 9) { playerVariables[playerid][pDrugs] += 100000; SendClientMessage(playerid, COLOR_WHITE, "Ai castigat 100.000 droguri de la giftbox."); format(szMessage, sizeof(szMessage), "(( AdmBot says: %s won 100.000 drugs at giftbox. ))",GetName(playerid)); SCMTA(COLOR_LIGHT,szMessage); } playerVariables[playerid][pGiftHours] = 4; } else SCM(playerid,COLOR_YELLOW, szMessage); } else { SCM(playerid,COLOR_WHITE, "You are not at giftbox location. Go to checkpoint."); SetPlayerCheckpoint(playerid, 1123.7257,-1468.3381,15.7514, 2); } } else SCM(playerid,COLOR_YELLOW,"The gift is not active."); } else SCM(playerid,COLOR_WHITE, "Ai nevoie de 3 ore jucate pentru a folosi comanda /getgift."); return 1; }
Imagini / Video (optional): 0
Ati incercat sa rezolvati singur?: Am incercat sa adaug un timer de 3 ore , dar ma ca.m batut..
Problema Getgift
in Arhivă probleme
Posted
Si cum as putea face un asa timer ?