Jump to content

AnDrEyUpS

Membru
  • Content Count

    22
  • Joined

  • Last visited

  • Days Won

    1

AnDrEyUpS last won the day on October 16

AnDrEyUpS had the most liked content!

Community Reputation

1 Neutru

About AnDrEyUpS

  • Rank
    Membru

Profile Information

  • Sex
    Masculin
  • Name in game
    AnDreYups
  • Level of knowledge
    Mediu

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Buna ziua am creeat acest topic deoarece am vrut sa imi prezentati un sistem simplu cred ca pe server-ul lui Raduq. Adica:Eu o sa fac o arena ... si o sa pun cerc in care playerii sa tasteze comanda /sfg sau orice alta comanda si, sa-i bage intr-un dialog ca, la /buydrink inloc de bauturi sa-si aleaga o masina care sa fie spawnata...,dar sa nu le fie data de tot si prin asta ma refer la /v. GameMode = Human Procesor = CMD Si ex de o comanda sa vedeti cam ce se foloseste in gm-ul meu: CMD:spawncar(playerid, params[]) { if(pInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_DARKGRAY, AdminError); new vehicleid[25], color1 = 0, color2 = 1; if(sscanf(params, "s[24]dd", vehicleid, color1, color2)) return SendSyntaxMessage(playerid, "/spawncar [name/id] [color1] [color2]"); new vehslot = GetFreeAdminVehicleSlot(), Float: pos[3]; if(IsNumeric(vehicleid)) { if(!IsValidVehicleModel(strval(vehicleid))) return SendClientMessage(playerid, COLOR_DARKGRAY, "Invalid vehicle model."); if(vehslot == -1) return SendClientMessage(playerid, COLOR_DARKGRAY, "The Admin Vehicle spawn limit has been reached. (100/100 Vehicles)"); GetPlayerPos(playerid, pos[0], pos[1], pos[2]); AdminVehicleData[vehslot][a_vehicleID] = CreateVehicle(strval(vehicleid), pos[0], pos[1], pos[2], 0.0, color1, color2, -1), vVar[4][AdminVehicleData[vehslot][a_vehicleID]] = vehslot; vVar[1][AdminVehicleData[vehslot][a_vehicleID]] = 0, SetVehicleParamsExx(AdminVehicleData[vehslot][a_vehicleID], IsABike(AdminVehicleData[vehslot][a_vehicleID]) ? (1) : (0),0,vParams[2],0,0,0,vParams[6]); if(AdminVehicleData[vehslot][a_vehicleID] == INVALID_VEHICLE_ID) return AdminVehicleData[vehslot][a_vehicleID] = -1, SendClientMessage(playerid, -1, "An error has occured. The vehicle couldn't be created."); AdminVehicleData[vehslot][a_slotTaken] = true, AdminVehicleData[vehslot][a_spawnedBy] = playerid; vVar[3][AdminVehicleData[vehslot][a_vehicleID]] = GasMax, SetVehicleVirtualWorld(AdminVehicleData[vehslot][a_vehicleID], vwp[playerid]), LinkVehicleToInterior(AdminVehicleData[vehslot][a_vehicleID], innt[playerid]); } else if(!IsNumeric(vehicleid)) { new modelid = GetModelIDFromName(vehicleid); if(modelid == -1) return SendClientMessage(playerid, COLOR_DARKGRAY, "Invalid vehicle model name."); if(!IsValidVehicleModel(modelid)) return SendClientMessage(playerid, COLOR_DARKGRAY, "Invalid vehicle model."); GetPlayerPos(playerid, pos[0], pos[1], pos[2]); if(vehslot == -1) return SendClientMessage(playerid, COLOR_DARKGRAY, "The Admin Vehicle spawn limit has been reached. (100/100 Vehicles)"); AdminVehicleData[vehslot][a_vehicleID] = CreateVehicle(modelid, pos[0], pos[1], pos[2], 0.0, color1, color2, -1), vVar[4][AdminVehicleData[vehslot][a_vehicleID]] = vehslot; vVar[1][AdminVehicleData[vehslot][a_vehicleID]] = 0, SetVehicleParamsExx(AdminVehicleData[vehslot][a_vehicleID], IsABike(AdminVehicleData[vehslot][a_vehicleID]) ? (1) : (0),0,vParams[2],0,0,0,vParams[6]); if(AdminVehicleData[vehslot][a_vehicleID] == INVALID_VEHICLE_ID) return AdminVehicleData[vehslot][a_vehicleID] = -1, SendClientMessage(playerid, COLOR_DARKGRAY, "An error has occured. The vehicle couldn't be created."); AdminVehicleData[vehslot][a_slotTaken] = true, AdminVehicleData[vehslot][a_spawnedBy] = playerid; vVar[3][AdminVehicleData[vehslot][a_vehicleID]] = GasMax, SetVehicleVirtualWorld(AdminVehicleData[vehslot][a_vehicleID], vwp[playerid]), LinkVehicleToInterior(AdminVehicleData[vehslot][a_vehicleID], innt[playerid]); } format(AdminWText, sizeof(AdminWText), "AdmCmd: %s has spawned a vehicle (%s).", GetName(playerid), g_VehicleNames[GetVehicleModel(AdminVehicleData[vehslot][a_vehicleID])-400]); SendAdminMessage(playerid, COLOR_ADMWARNING, AdminWText); return 1; } Ma poate ajuta cineva? Dau +1
  2. Buna ziua am facut si eu o comanda ( startminigame1 ) si am incercat sa-i fac si un timer dar nu reusesc m-ar putea ajuta cineva? Comanda ( startminigame1 ) CMD:startminigame1(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid,3.0,-2509.9736,-3149.0483,7.1309)) { if(pInfo[playerid][pCarLic] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Nu ai licenta de condus."); if(pInfo[playerid][pWantedLevel] != 0) return SendClientMessage(playerid,COLOR_WHITE, "Nu poti intra in Minigame daca ai wanted."); { SetPlayerPos(playerid,-3136.0701,-2737.7593,534.5658); TogglePlayerControllable(playerid, 1); SetTimerEx("UnFreezeStation", 2000, false, "i", playerid); SetPlayerVirtualWorld(playerid, 0); } } else return SendClientMessage(playerid, COLOR_VERDE, "Nu esti la Minigame."); return 1; } Timer-ul : SetTimerEx("TimerM", 9000, false, "i", playerid); forward TimerM; public TimerM; SetTimerEx("TimerM", 9000, false, "i", playerid); return 1; } Vreu sa fac acel timer deoarece playeri pot da incontinu " startminigame1 " Ma poate ajuta cineva?
  3. Am intampinat urmatoarea erroare/problema la comanda ! Aceasta e comanda mea ! YCMD:getgift(playerid, params[], help) { if(SpecialWeek == 0) return SCM(playerid, COLOR_LGREEN, "Giftbox-ul nu este activ!"); new string[180], won[256]; if(PlayerInfo[playerid][pGiftPoints] >= 2) { if(PlayerInfo[playerid][pConnectTime] < 1) return SCM(playerid, COLOR_LGREEN, "Ai nevoie de 2 ore jucate pentru a putea lua acest cadou!"); if(PlayerToPoint(25.0, playerid, 153.0107,-1951.2157,5.7501)) { new rand = random(310); PlayerInfo[playerid][pGiftPoints] = 2; Update(playerid, pGiftPointsx); if(rand < 270) { new randmoney = 1000000 + random(4500000); PlayerInfo[playerid][pCash] += randmoney; GivePlayerCash(playerid, randmoney); format(won, sizeof(won), "Ai castigat $%s din gift box!", FormatNumber(randmoney)); format(string, sizeof(string), "%s a castigat $%s din giftbox.", GetName(playerid), FormatNumber(randmoney)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftMoney += randmoney; } else if(rand >= 270 && rand < 280) { new randrp = 2 + random(6); PlayerInfo[playerid][pPremiumPoints] += randrp; Update(playerid, pPremiumPointsx); format(won, sizeof(won), "Ai castigat %d puncte premium din gift box!", randrp); format(string, sizeof(string), "%s a castigat %d puncte premium din giftbox.", GetName(playerid), randrp); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftGold += randrp; format(string, sizeof(string), "(( AdmBot: %s a castigat %d puncte premium din giftbox! ))", GetName(playerid), randrp); SendClientMessageToAll(COLOR_CLIENT, string); } else if(rand >= 280 && rand < 297) { new randrp = 1 + random(4); PlayerInfo[playerid][pExp] += randrp; Update(playerid, pRP); format(won, sizeof(won), "Ai castigat %d respect points din gift box!", randrp); format(string, sizeof(string), "%s a castigat %d RP-uri din giftbox.", GetName(playerid), randrp); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftRP += randrp; UpdateProgress(playerid, 0); } else if(rand >= 297 && rand <= 300) { if(GiftVehicle < 60) { if(GetSlots(playerid) == GetVehicles(playerid)) { new randmoney = 1000000 + random(4500000); PlayerInfo[playerid][pCash] += randmoney; GivePlayerCash(playerid, randmoney); format(won, sizeof(won), "Ai castigat $%s din gift box!", FormatNumber(randmoney)); format(string, sizeof(string), "%s a castigat $%s din giftbox.", GetName(playerid), FormatNumber(randmoney)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftMoney += randmoney; } else { GiftVehicle++; format(won, sizeof(won), "Felicitari! Ai castigat vehiculul Stretch din giftbox."); GiveVehicle(playerid, 409); format(string, sizeof(string), "(( AdmBot: %s a castigat vehiculul Stretch din giftbox! ))", GetName(playerid)); SendClientMessageToAll(COLOR_CLIENT, string); format(string, sizeof(string), "(( AdmBot: Mai sunt %d vehicule disponibile. ))", 60-GiftVehicle); SendClientMessageToAll(COLOR_CLIENT, string); format(string, sizeof(string), "%s a castigat un Stretch din giftbox.", GetName(playerid)); InsertLog(playerid, string, LOG_GIFTBOX); } } } else if(rand > 300 && rand < 305) { new str[128]; PlayerInfo[playerid][pCarLic] = 1; PlayerInfo[playerid][pCarLicT] += 250; PlayerInfo[playerid][pCarLicS] = 0; PlayerInfo[playerid][pFlyLic] = 1; PlayerInfo[playerid][pFlyLicT] += 250; PlayerInfo[playerid][pFlyLicS] = 0; PlayerInfo[playerid][pBoatLic] = 1; PlayerInfo[playerid][pBoatLicT] += 250; PlayerInfo[playerid][pBoatLicS] = 0; PlayerInfo[playerid][pGunLic] = 1; PlayerInfo[playerid][pGunLicT] += 250; PlayerInfo[playerid][pGunLicS] = 0; format(str,128,"UPDATE users SET `CarLic`='1',`CarLicT`='%d',`CarLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pCarLicT],PlayerInfo[playerid][pSQLID]); mysql_query(SQL,str); format(str,128,"UPDATE users SET `FlyLic`='1',`FlyLicT`='%d',`FlyLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pFlyLicT],PlayerInfo[playerid][pSQLID]); mysql_query(SQL,str); format(str,128,"UPDATE users SET `BoatLic`='1',`BoatLicT`='%d',`BoatLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pBoatLicT],PlayerInfo[playerid][pSQLID]); mysql_query(SQL,str); format(str,128,"UPDATE users SET `GunLic`='1',`GunLicT`='%d', `GunLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pGunLicT],PlayerInfo[playerid][pSQLID]); mysql_query(SQL,str); format(won, sizeof(won), "Ai primit toate licentele pentru inca 250 de ore!"); format(string, sizeof(string), "%s a primit toate licentele pentru inca 250 de ore.", GetName(playerid)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); } else if(rand > 305 && rand < 306) { if(PlayerInfo[playerid][pFpunish] == 0) { new randmoney = 1000000 + random(4500000); PlayerInfo[playerid][pCash] += randmoney; GivePlayerCash(playerid, randmoney); format(won, sizeof(won), "Ai castigat $%s din gift box!", FormatNumber(randmoney)); format(string, sizeof(string), "%s a castigat $%s din giftbox.", GetName(playerid), FormatNumber(randmoney)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftMoney += randmoney; } else { PlayerInfo[playerid][pFpunish] = 0; Update(playerid, pFpunishx); format(won, sizeof(won), "Felicitari! Ai ramas fara FP-uri."); format(string, sizeof(string), "%s a ramas fara FP-uri.", GetName(playerid)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); } } else if(rand > 306) { if(PlayerInfo[playerid][pWarns] == 0) { new randmoney = 1000000 + random(4500000); PlayerInfo[playerid][pCash] += randmoney; GivePlayerCash(playerid, randmoney); format(won, sizeof(won), "Ai castigat $%s din gift box!", FormatNumber(randmoney)); format(string, sizeof(string), "%s a castigat $%s din giftbox.", GetName(playerid), FormatNumber(randmoney)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftMoney += randmoney; } else { PlayerInfo[playerid][pWarns] = 0; Update(playerid, pWarnsx); format(won, sizeof(won), "Felicitari! Ti-au fost sterse warn-urile."); format(string, sizeof(string), "%s a ramas fara warn-uri.", GetName(playerid)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); } } else { new randmoney = 1000000 + random(4500000); PlayerInfo[playerid][pCash] += randmoney; GivePlayerCash(playerid, randmoney); format(won, sizeof(won), "Ai castigat $%s din gift box!", FormatNumber(randmoney)); format(string, sizeof(string), "%s a castigat $%s din giftbox.", GetName(playerid), FormatNumber(randmoney)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftMoney += randmoney; } UpdateGift(); ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Giftbox", won, "Ok", ""); } else return SendClientMessage(playerid, COLOR_GREY, "Nu esti la loc-ul getgift-ului ,acesta se afla pe plaja Los Santos"); } else { format(string, sizeof(string), "Poti lua acest cadou peste %d ore.", 2-PlayerInfo[playerid][pGiftPoints]); SendClientMessage(playerid, COLOR_YELLOW, string); SCM(playerid, COLOR_YELLOW, "Orele se contorizeaza doar in momentul in care ai jucat cel putin 30 minute pana la payday."); } return 1; } function UpdateGift() { if(SpecialWeek == 0) return 1; new string[500]; format(string, sizeof(string), "Giftbox (/getgift)\nBani castigati: {FC6A6A}$%s{FFFFFF}\nRP-uri castigate: {FC6A6A}%s{FFFFFF}\nPuncte premium castigate: {FC6A6A}%s{FFFFFF}\nVehicule castigate: {FC6A6A}%s{FFFFFF}", FormatNumber(GiftMoney), FormatNumber(GiftRP), FormatNumber(GiftGold), FormatNumber(GiftVehicle)); UpdateDynamic3DTextLabelText(GiftText, -1, string); new query[256]; format(query, sizeof(query), "UPDATE `stuff` SET `GiftMoney`='%d', `GiftRP`='%d', `GiftGold`='%d', `GiftLevel`='%d', `GiftFP`='%d', `GiftVehicle`='%d'", GiftMoney, GiftRP, GiftGold, GiftLevel, GiftFP, GiftVehicle); mysql_tquery(SQL, query, "", ""); return 1; } Eu am adaugat ce mi-ai zis tu sub if(PlayerInfo[playerid][pGiftPoints] >= 2) incloc de stmsg am pus SCM A 3-a linie de la YCMD:getgift Si primesc urmatoarele errori : (19489) : error 029: invalid expression, assumed zero (19489) : error 029: invalid expression, assumed zero (19489) : error 029: invalid expression, assumed zero (19489) : fatal error 107: too many error messages on one line Linia(19489?if(PlayerInfo[playerid][pPremiumAccount] == 0 ? (PlayerInfo[playerid][pGiftTimer] = gettime()+300) : (PlayerInfo[playerid][pGiftTimer] = gettime()+240))
  4. ?Buna ziua ,ma numesc Andrei. Am si eu un system de /getgift Problema : Cand folosesc comanda /getgift o mai pot folosii de cate ori vreau si asta nu imi place. Ma-ti putea ajuta cu un timer de 1ora ? GameMode:wa-rpg GameMode=Shane de pe youtube. Folosesc: YCMD. Dau +10 daca voi fi ajutat .Pupi ?
  5. Am de la ultra-h din canada mi-se pare.Nu pot sa le dau mesaj sa mi-l puna ei ?
  6. Salut baieti si fete,am creat accest topic pentru ca am intampinat o mica problema si nu stiu sa o rezolv,si m-am gandit ca poate ma puteti ajuta.Este doar 1 rand de o comanda scurta !!! Problema:Am si eu comanda /bonus,si am vrut sa adaug si un picador la aceasta comanda,dar am intampinat urmatoare problema Error 035:Argument type matching ( argument 2 ) = Ma puteti ajuta? Cateva define-uri ( culori ) ( COLOR_ROSUVV2) , ( COLOR_[PORTOCALIUV2) , )COLOR_ROZV2) Cateva new-uri ( variabile presupn ) https://imgur.com/a/Snt7Uzi Procesor ( YCMD ) Comanda : YCMD:bonus(playerid, params[], help) { if(PlayerInfo[playerid][pLevel] >= 3) return SCM(playerid, COLOR_LIGHTRED, "Ai primit deja bonusul de inceput sau ai trecut de level 3!"); PlayerInfo[playerid][pLevel] = 5; Update(playerid, pLevel); SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); GivePlayerCash(playerid, 15000000); Update(playerid, pCashx); PlayerInfo[playerid][pPremiumPoints] += 100; Update(playerid, pPremiumPointsx); UpdateProgress(playerid, 0); GiveVehicle(playerid, 600); UpdateProgress(playerid, pCar); ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "[!] Bonus", "+5 level up [level 5]\n+100 premium points [/shop]\n+$15,000,000\n\nWelcome to the server, have fun!", "Close", ""); return 1; } Eroarea mi-o da la ( UpdateProgress(playerid, pCar); Sau la ( GiveVehicle(playerid, 600); = 600 fiind id-ul Picadorului.. Am adaugat doar : GiveVehicle, 600); UpdateProgress(playerid, pCar); Erroarea : https://imgur.com/a/vdvaDqM Ofer + 10... Multumesc !
  7. Buna ziua am si eu un server de samp RPG. Problema:Atunci cand scriu ceva in cheat .ex.( ce faci ? ) se vede la toti jucatorii care nu sunt in apropiere. Ma putrti ajuta cum sa fac cheat-ul pe o raza ? 10-15 m. Gamemode:wa-rpg.YCMD Host:ultra-h Cateva define-uri:define color_rosuvv2 , define color_verdev2 ... ETC Ma puteti ajuta ? Dau +5
  8. St0ry imi poti lasa discord ul tau da vb acolo ?Despre Neon.
  9. Am si eu aproape aceasi problema.Cate o data cand trag cu arma imi zice ... Kicked for server ( wepoon hack ) .Ce ii pot face ? Am un gm wa-rpg YCMD
  10. Ma poti ajuta si pe mine,caut de mult timp.Am un gm wa-rpg ,procesor YCMD.Cum caut cu ctrl f sa gasesc .? Dau +1
  11. Buna ziua,am si eu o problema cu un system det /getgift. GameMode = wa-rpg Am dat ctrl+f sa caut /getgift = YCMD:getgift(playerid, params[], help) { if(SpecialWeek == 0) return SCM(playerid, COLOR_LGREEN, "Giftbox-ul nu este activ!"); new string[180], won[256]; if(PlayerInfo[playerid][pGiftPoints] >= 100) { if(PlayerInfo[playerid][pConnectTime] < 1) return SCM(playerid, COLOR_LGREEN, "Ai nevoie de 2 ore jucate pentru a putea lua acest cadou!"); if(PlayerToPoint(25.0, playerid, 192.0716,-1825.4077,7.2670)) { new rand = random(310); PlayerInfo[playerid][pGiftPoints] = 100; Update(playerid, pGiftPointsx); if(rand < 270) { new randmoney = 1000000 + random(4500000); PlayerInfo[playerid][pCash] += randmoney; GivePlayerCash(playerid, randmoney); format(won, sizeof(won), "Ai castigat $%s din gift box!", FormatNumber(randmoney)); format(string, sizeof(string), "%s a castigat $%s din giftbox.", GetName(playerid), FormatNumber(randmoney)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftMoney += randmoney; } else if(rand >= 270 && rand < 280) { new randrp = 2 + random(6); PlayerInfo[playerid][pPremiumPoints] += randrp; Update(playerid, pPremiumPointsx); format(won, sizeof(won), "Ai castigat %d puncte premium din gift box!", randrp); format(string, sizeof(string), "%s a castigat %d puncte premium din giftbox.", GetName(playerid), randrp); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftGold += randrp; format(string, sizeof(string), "(( AdmBot: %s a castigat %d puncte premium din giftbox! ))", GetName(playerid), randrp); SendClientMessageToAll(COLOR_CLIENT, string); } else if(rand >= 280 && rand < 297) { new randrp = 1 + random(4); PlayerInfo[playerid][pExp] += randrp; Update(playerid, pRP); format(won, sizeof(won), "Ai castigat %d respect points din gift box!", randrp); format(string, sizeof(string), "%s a castigat %d RP-uri din giftbox.", GetName(playerid), randrp); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftRP += randrp; UpdateProgress(playerid, 0); } else if(rand >= 297 && rand <= 300) { if(GiftVehicle < 60) { if(GetSlots(playerid) == GetVehicles(playerid)) { new randmoney = 1000000 + random(4500000); PlayerInfo[playerid][pCash] += randmoney; GivePlayerCash(playerid, randmoney); format(won, sizeof(won), "Ai castigat $%s din gift box!", FormatNumber(randmoney)); format(string, sizeof(string), "%s a castigat $%s din giftbox.", GetName(playerid), FormatNumber(randmoney)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftMoney += randmoney; } else { GiftVehicle++; format(won, sizeof(won), "Felicitari! Ai castigat vehiculul Stretch din giftbox."); GiveVehicle(playerid, 409); format(string, sizeof(string), "(( AdmBot: %s a castigat vehiculul Stretch din giftbox! ))", GetName(playerid)); SendClientMessageToAll(COLOR_CLIENT, string); format(string, sizeof(string), "(( AdmBot: Mai sunt %d vehicule disponibile. ))", 60-GiftVehicle); SendClientMessageToAll(COLOR_CLIENT, string); format(string, sizeof(string), "%s a castigat un Stretch din giftbox.", GetName(playerid)); InsertLog(playerid, string, LOG_GIFTBOX); } } } else if(rand > 300 && rand < 305) { new str[128]; PlayerInfo[playerid][pCarLic] = 1; PlayerInfo[playerid][pCarLicT] += 250; PlayerInfo[playerid][pCarLicS] = 0; PlayerInfo[playerid][pFlyLic] = 1; PlayerInfo[playerid][pFlyLicT] += 250; PlayerInfo[playerid][pFlyLicS] = 0; PlayerInfo[playerid][pBoatLic] = 1; PlayerInfo[playerid][pBoatLicT] += 250; PlayerInfo[playerid][pBoatLicS] = 0; PlayerInfo[playerid][pGunLic] = 1; PlayerInfo[playerid][pGunLicT] += 250; PlayerInfo[playerid][pGunLicS] = 0; format(str,128,"UPDATE users SET `CarLic`='1',`CarLicT`='%d',`CarLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pCarLicT],PlayerInfo[playerid][pSQLID]); mysql_query(SQL,str); format(str,128,"UPDATE users SET `FlyLic`='1',`FlyLicT`='%d',`FlyLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pFlyLicT],PlayerInfo[playerid][pSQLID]); mysql_query(SQL,str); format(str,128,"UPDATE users SET `BoatLic`='1',`BoatLicT`='%d',`BoatLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pBoatLicT],PlayerInfo[playerid][pSQLID]); mysql_query(SQL,str); format(str,128,"UPDATE users SET `GunLic`='1',`GunLicT`='%d', `GunLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pGunLicT],PlayerInfo[playerid][pSQLID]); mysql_query(SQL,str); format(won, sizeof(won), "Ai primit toate licentele pentru inca 250 de ore!"); format(string, sizeof(string), "%s a primit toate licentele pentru inca 250 de ore.", GetName(playerid)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); } else if(rand > 305 && rand < 306) { if(PlayerInfo[playerid][pFpunish] == 0) { new randmoney = 1000000 + random(4500000); PlayerInfo[playerid][pCash] += randmoney; GivePlayerCash(playerid, randmoney); format(won, sizeof(won), "Ai castigat $%s din gift box!", FormatNumber(randmoney)); format(string, sizeof(string), "%s a castigat $%s din giftbox.", GetName(playerid), FormatNumber(randmoney)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftMoney += randmoney; } else { PlayerInfo[playerid][pFpunish] = 0; Update(playerid, pFpunishx); format(won, sizeof(won), "Felicitari! Ai ramas fara FP-uri."); format(string, sizeof(string), "%s a ramas fara FP-uri.", GetName(playerid)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); } } else if(rand > 306) { if(PlayerInfo[playerid][pWarns] == 0) { new randmoney = 1000000 + random(4500000); PlayerInfo[playerid][pCash] += randmoney; GivePlayerCash(playerid, randmoney); format(won, sizeof(won), "Ai castigat $%s din gift box!", FormatNumber(randmoney)); format(string, sizeof(string), "%s a castigat $%s din giftbox.", GetName(playerid), FormatNumber(randmoney)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftMoney += randmoney; } else { PlayerInfo[playerid][pWarns] = 0; Update(playerid, pWarnsx); format(won, sizeof(won), "Felicitari! Ti-au fost sterse warn-urile."); format(string, sizeof(string), "%s a ramas fara warn-uri.", GetName(playerid)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); } } else { new randmoney = 1000000 + random(4500000); PlayerInfo[playerid][pCash] += randmoney; GivePlayerCash(playerid, randmoney); format(won, sizeof(won), "Ai castigat $%s din gift box!", FormatNumber(randmoney)); format(string, sizeof(string), "%s a castigat $%s din giftbox.", GetName(playerid), FormatNumber(randmoney)); InsertLog(playerid, string, LOG_GIFTBOX); ProxDetector(30.0,playerid, string, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW); GiftMoney += randmoney; } UpdateGift(); ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Giftbox", won, "Ok", ""); } else return SendClientMessage(playerid, COLOR_GREY, "Nu esti la loc-ul getgift-ului ,acesta se afla pe plaja Los Santos"); } else { format(string, sizeof(string), "Poti lua acest cadou peste %d ore.", 2-PlayerInfo[playerid][pGiftPoints]); SendClientMessage(playerid, COLOR_YELLOW, string); SCM(playerid, COLOR_YELLOW, "Orele se contorizeaza doar in momentul in care ai jucat cel putin 30 minute pana la payday."); } return 1; } function UpdateGift() { if(SpecialWeek == 0) return 1; new string[500]; format(string, sizeof(string), "Giftbox (/getgift)\nBani castigati: {FC6A6A}$%s{FFFFFF}\nRP-uri castigate: {FC6A6A}%s{FFFFFF}\nPuncte premium castigate: {FC6A6A}%s{FFFFFF}\nVehicule castigate: {FC6A6A}%s{FFFFFF}", FormatNumber(GiftMoney), FormatNumber(GiftRP), FormatNumber(GiftGold), FormatNumber(GiftVehicle)); UpdateDynamic3DTextLabelText(GiftText, -1, string); new query[256]; format(query, sizeof(query), "UPDATE `stuff` SET `GiftMoney`='%d', `GiftRP`='%d', `GiftGold`='%d', `GiftLevel`='%d', `GiftFP`='%d', `GiftVehicle`='%d'", GiftMoney, GiftRP, GiftGold, GiftLevel, GiftFP, GiftVehicle); mysql_tquery(SQL, query, "", ""); return 1; } Aceasta este comanda,o sa va las aici cateva poze cu ce am in gm si variabile etc / Procesor YCMD / https://imgur.com/a/SCJ7IwJ = variabile = defineuri de ce aveti nevoie... Hai sa trecem la ce vreu sa fac si nu stiu cum !!! Vreu ca in comanda /stats sa apara GiftPoints ... /200 Si sa zicem la 200/200 sa poti da getgift.. La mine in gamemode poti da de cate ori vrei si asta nu imi place.Ma puteti ajuta va rog frumos ?
×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.