Jump to content

caltabos

Membru
  • Content Count

    126
  • Joined

  • Last visited

Community Reputation

1 Neutru

About caltabos

  • Rank
    Membru avansat

Profile Information

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

Recent Profile Visitors

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

  1. caltabos

    pet type

    Salut, am facut un sistem de pet, dar cum fac dupa ce iti alegi tipul de pet, daca il scoti si il pui iarasi sa ramana acelasi pet sa nu trebuiasca de fiecare data sa alegi tipul de pet? } case DIALOG_PET: { switch(listitem) { case 0: { if(!response) return 1; if(PlayerInfo[playerid][pPetStatus] == 0) { PlayerInfo[playerid][pPetStatus] = 1; format(string, sizeof(string),"Status\t{26B309}Mounted\nNume Pet\t{FFFF00}%s\nBeneficii pet\nAvanseaza pet\t%d loiality points\nTip Pet",PlayerInfo[playerid][pPetName],PlayerInfo[playerid][pPetPoints]); format(string, sizeof(string), "{f4e500}Lvl %d. {41fe00}%s",PlayerInfo[playerid][pPetLevel],PlayerInfo[playerid][pPetName]); Pet[playerid] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 357.120239, 1.712298, 349.232513, 20, playerid); SCMEx(playerid, -1, "Ai trezit pe {41fe00}%s, {FFFFFF}alege tipul de pet pentru a se pune pe umarul tau.",PlayerInfo[playerid][pPetName]); format(query, sizeof(query),"UPDATE `users` SET `PetStatus` = '1' WHERE `Name` = '%s'", GetName(playerid)); mysql_tquery(SQL, query, " ", " "); Update(playerid, pPetStatusx); } else { RemovePet(playerid); SCMEx(playerid, -1, "Ai trimis pe {41fe00}%s {FFFFFF}la culcare.",PlayerInfo[playerid][pPetName]); PlayerInfo[playerid][pPetStatus] = 0; format(query, sizeof(query),"UPDATE `users` SET `PetStatus` = '0' WHERE `Name` = '%s'", GetName(playerid)); mysql_tquery(SQL, query, " ", " "); Update(playerid, pPetStatusx); } } case 1: { if( !response) return 1; format(string, sizeof(string),"Numele actual al pet-ului este {41fe00}%s{FFFFFF}.\nDaca doresti sa il schimbi,te rugam sa introduci numele dorit in casuta de mai jos.",PlayerInfo[playerid][pPetName]); ShowPlayerDialog(playerid, DIALOG_PET2, DIALOG_STYLE_INPUT, "Pet name change", string, "Change", "Cancel"); } case 2: { Checkstatuspet(playerid); } case 3: { if(PlayerInfo[playerid][pPetPoints] < 90) return SendClientMessage(playerid, -1, "Nu poti creste pet-ul in level deoarece nu ai Loiality Points necesare(90)"); PlayerInfo[playerid][pPetPoints] -= 90; PlayerInfo[playerid][pPetLevel] ++; Update(playerid, pPetPointsx); Update(playerid, pPetLevelx); SCMEx(playerid, -1, "Acum pet-ul tau are level {41fe00}%d",PlayerInfo[playerid][pPetLevel]); DestroyDynamic3DTextLabel(Pet[playerid]); format(string, sizeof(string), "{f4e500}Lvl %d. {41fe00}%s",PlayerInfo[playerid][pPetName],PlayerInfo[playerid][pPetLevel]); Pet[playerid] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 357.120239, 1.712298, 349.232513, 20, playerid); } case 4: { format(string, sizeof(string),"Model\tID\nParrot\t19078\nDelphin\t1607\nTurttle\t1609\nShark\t1608\nHippo\t1371\n"); ShowPlayerDialog(playerid, DIALOG_PET3, DIALOG_STYLE_TABLIST_HEADERS, "Change pet look", string, "Change", "Exit"); } } } case DIALOG_PET2: { if(!response) return 1; if(!isnull(inputtext)) { if(strlen(inputtext) >= 5 && strlen(inputtext) <= 15) { if(strlen(inputtext) >= 1) { if(strfind(inputtext, "%", true) != -1 || strfind(inputtext, "`", true) != -1 || strfind(inputtext, "'", true) != -1) return SCM(playerid, COLOR_CLIENT, "Caractere invalide!"); } DestroyDynamic3DTextLabel(Pet[playerid]); format(query, sizeof(query),"UPDATE `users` SET `PetName` = '%s' WHERE `Name` = '%s'",inputtext, GetName(playerid)); mysql_tquery(SQL, query, "", ""); format(PlayerInfo[playerid][pPetName], 30, inputtext); SCMEx(playerid, -1, "Ai schimbat numele pet-ului in {41fe00}%s",PlayerInfo[playerid][pPetName]); Update(playerid, pPetNamex); format(string, sizeof(string), "{f4e500}Lvl %d. {41fe00}%s",PlayerInfo[playerid][pPetLevel],PlayerInfo[playerid][pPetName]); Pet[playerid] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 357.120239, 1.712298, 349.232513, 20, playerid); } else { SCM(playerid, -1, "[{DE1414}Error{FFFFFF}]: Nume pet invalid. (5 - 15 litere)"); format(string, sizeof(string), "Numele actual al pet-ului este {41fe00}%s\nDaca doresti sa il schimbi te rugam introdu numele dorit in casuta de mai jos\nNumele trebuie sa fie de minin 5 caractere si maxim 15",PlayerInfo[playerid][pPetName]); ShowPlayerDialog(playerid, DIALOG_PET2, DIALOG_STYLE_INPUT, "Change pet name", string, "Change", "Cancel"); } } else { SCM(playerid, -1, "[{DE1414}Error{FFFFFF}]: Nume pet invalid. (5 - 15 litere)"); format(string, sizeof(string), "Numele actual al pet-ului este {41fe00}%s\nDaca doresti sa il schimbi te rugam introdu numele dorit in casuta de mai jos\n Numele trebuie sa fie de minin 5 caractere si maxim 15",PlayerInfo[playerid][pPetName]); ShowPlayerDialog(playerid, DIALOG_PET2, DIALOG_STYLE_INPUT, "Change pet name", string, "Change", "Cancel"); } } } case DIALOG_PET3: { switch(listitem) { case 0: { if(!response) return 1; if(PlayerInfo[playerid][pPetStatus] == 0) return SendClientMessage(playerid, -1, "Pet-ul tau doarme!"); SetPlayerAttachedObject(playerid, 6, 19078, 1, 0.316519, -0.036611, 0.172289, 0.000000, 343.587738, 12.048048, 0.543706, 1.000000, 0.647343 ); //papagal(parrot) SCM(playerid, -1, "{961515}[SUCCES]{FFFFFF}Modelul animalului tau de companie a fost schimbat."); } case 1: { if(!response) return 1; if(PlayerInfo[playerid][pPetStatus] == 0) return SendClientMessage(playerid, -1, "Pet-ul tau doarme!"); SetPlayerAttachedObject(playerid, 6, 1607, 1, 0.377103, 0.003732, 0.147328, 0.000000, 88.125770, 0.000000, 0.095321, 0.050000, 0.090522 ); //delfin(delphin) SCM(playerid, -1, "{961515}[SUCCES]{FFFFFF}Modelul animalului tau de companie a fost schimbat."); } case 2: { if(!response) return 1; if(PlayerInfo[playerid][pPetStatus] == 0) return SendClientMessage(playerid, -1, "Pet-ul tau doarme!"); SetPlayerAttachedObject(playerid, 6, 1609, 1, 0.337361, 0.001010, 0.165185, 0.000000, 81.682929, 0.000000, 0.072737, 0.059999, 0.120257 ); //broasca(turttle) SCM(playerid, -1, "{961515}[SUCCES]{FFFFFF}Modelul animalului tau de companie a fost schimbat."); } case 3: { if(!response) return 1; if(PlayerInfo[playerid][pPetStatus] == 0) return SendClientMessage(playerid, -1, "Pet-ul tau doarme!"); SetPlayerAttachedObject(playerid, 6, 1608, 1, 0.388602, -0.084080, 0.154034, 0.000000, 83.616508, 0.000000, 0.057243, 0.039999, 0.066129 ); //rechin(shark) SCM(playerid, -1, "{961515}[SUCCES]{FFFFFF}Modelul animalului tau de companie a fost schimbat."); } case 4: { if(!response) return 1; if(PlayerInfo[playerid][pPetStatus] == 0) return SendClientMessage(playerid, -1, "Pet-ul tau doarme!"); SetPlayerAttachedObject(playerid, 6, 1371, 1, 0.429674, -0.027629, 0.163063, 179.132446, 103.030456, 1.271043, 0.203301, 0.170000, 0.163861 ); //hipo(hippo) SCM(playerid, -1, "{961515}[SUCCES]{FFFFFF}Modelul animalului tau de companie a fost schimbat."); } } }
  2. caltabos

    Nu mai merge comanda /v!

    Defapt acum nu imi merge pe pc-ul de pe care scriptez! Am incercat pe alt pc si merge. Dar am schimbat modurile si de pe pc ul care scriptez tot nu merge!
  3. caltabos

    Nu mai merge comanda /v!

    Salut, dintr-o data dupa un restart nu mai merge comanda /v /cars /vehicles! Ea se afla in gamemode! Cand dau /v imi spune ca aceasta comanda nu exista!! CMD:cars(playerid, params[]) return ShowPlayerVehicle(playerid); CMD:v(playerid, params[]) return ShowPlayerVehicle(playerid); CMD:vehicles(playerid, params[]) return ShowPlayerVehicle(playerid); } stock ShowPlayerVehicle(playerid) { new szTitle[180], szDialog[1300], szDialog2[1300], vstatus[1024]; if(GetVehicles(playerid) == 0) return SendClientMessage(playerid, COLOR_LGREEN, "Eroare: Nu ai un vehicul personal!"); format(szTitle, sizeof(szTitle), "Vehicles (%d/%d)", GetVehicles(playerid), TotalSlots(playerid)); for(new i = 0; i < 10; i++) { if(i < 5) { if(i < 3) { if(PlayerInfo[playerid][pCarKey][i] != 0) { new car = PlayerInfo[playerid][pCarKey][i]; if(IsVehicleOccupied(CarInfo[car][Spawned])) format(vstatus, sizeof(vstatus), "{FFFF00}(Occupied){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); else if(CarInfo[car][Spawned] > 0) format(vstatus, sizeof(vstatus), "{26B309}(Spawned){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); else format(vstatus, sizeof(vstatus), "{FF0000}(Despawnat){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); format(szDialog, sizeof(szDialog), "%s\n", vstatus); strcat(szDialog2, szDialog); } else strcat(szDialog2, "{0cb700}none\n"), sVehicle[i][playerid] = 0; } else { if(PlayerInfo[playerid][pCarKey][i] != 0) { new car = PlayerInfo[playerid][pCarKey][i]; if(IsVehicleOccupied(CarInfo[car][Spawned])) format(vstatus, sizeof(vstatus), "{FFFF00}(Occupied){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); else if(CarInfo[car][Spawned] > 0) format(vstatus, sizeof(vstatus), "{26B309}(Spawned){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); else format(vstatus, sizeof(vstatus), "{FF0000}(Despawnat){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); format(szDialog, sizeof(szDialog), "%s\n", vstatus); strcat(szDialog2, szDialog); } else if(PlayerInfo[playerid][pPremiumAccount] == 1) strcat(szDialog2, "{0cb700}none\n"), sVehicle[i][playerid] = 0; } } else { if(PlayerInfo[playerid][pCarKey][i] != 0) { new car = PlayerInfo[playerid][pCarKey][i]; if(IsVehicleOccupied(CarInfo[car][Spawned])) format(vstatus, sizeof(vstatus), "{FFFF00}(Occupied){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); else if(CarInfo[car][Spawned] > 0) format(vstatus, sizeof(vstatus), "{26B309}(Spawned){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); else format(vstatus, sizeof(vstatus), "{FF0000}(Despawnat){FFFFFF} %s", aVehicleNames[CarInfo[car][cModel]-400]); format(szDialog, sizeof(szDialog), "%s\n", vstatus); strcat(szDialog2, szDialog); } else if(PlayerInfo[playerid][pSlot][i-5] == 1) strcat(szDialog2, "{0cb700}none\n"), sVehicle[i][playerid] = 0; } } ShowPlayerDialog(playerid, DIALOG_GARAGE, DIALOG_STYLE_LIST, szTitle, szDialog2, "Ok", "Exit"); return 1; }
  4. caltabos

    rainbow car problema

    da, dar am rezolvat eroarea, dar am adaugat aia si tot dupa restart se pune rainbou-ul
  5. caltabos

    rainbow car problema

    Uite
  6. caltabos

    rainbow car problema

    https://pastebin.com/akyxZVtQ
  7. caltabos

    rainbow car problema

    am rezolvat cu erorile
  8. caltabos

    rainbow car problema

    Cand adaug imi da erorile astea: E:\Gamemodes\gamemode\gamemodes\GM.pwn(10119) : warning 215: expression has no effect E:\Gamemodes\gamemode\gamemodes\GM.pwn(10119) : error 001: expected token: ";", but found "�" E:\Gamemodes\gamemode\gamemodes\GM.pwn(10119) : error 029: invalid expression, assumed zero E:\Gamemodes\gamemode\gamemodes\GM.pwn(10119) : error 029: invalid expression, assumed zero E:\Gamemodes\gamemode\gamemodes\GM.pwn(10119) : fatal error 107: too many error messages on one line
  9. caltabos

    rainbow car problema

    Acum merge, dar cumpar rainbow la masina scriu comanda /rainbow si imi spune ca nu are rainbow si daca dau restart la server merge! Se actualizeaza dupa restart la server! oare e de la asta: format(string, sizeof(string), "UPDATE `cars` SET `Rainbow`='1' WHERE `ID`='%d'", idd); mysql_query(SQL, string); trebuie updatat in alt mod?
  10. caltabos

    rainbow car problema

    Am adaugat intr-un sistem rainbow sa se poata cumpara din comanda /v, dar il cumpar si cand dau comanda /rainbow imi spune ca nu este unul rainbow! (In Baza arata Rainbow = 1) } CMD:stoprainbow(playerid, params[]) { new carid; if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_GREEN, "Nu esti intr-un vehicul"); ------> AICI ESTE VERIFICAREA if(CarInfo[carid][cRainbow] == 0) return SCM(playerid, -1, "Acest vehicul nu este unul Rainbow!"); if(rainbowon[playerid] == 1) { new vehid = GetPlayerVehicleID(playerid); ChangeVehicleColor(vehid, DealerCarColor1[playerid], DealerCarColor2[playerid]); rainbowtimer[playerid] = KillTimer(rainbowtimer[playerid]); rainbowon[playerid] = 0; SCM(playerid, COLOR_GREEN, "The rainbow is disable"); } else { SCM(playerid, COLOR_GREEN, "The rainbow is already disable"); } return 1; } CMD:rainbow(playerid, params[]) { new carid; if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_GREEN, "Nu esti intr-un vehicul"); ------> AICI ESTE VERIFICAREA if(CarInfo[carid][cRainbow] == 0) return SCM(playerid, -1, "Acest vehicul nu este unul Rainbow!"); if(rainbowon[playerid] == 0) { new color1, color2; GetVehicleColor(GetPlayerVehicleID(playerid), color1, color2); DealerCarColor1[playerid] = color1; DealerCarColor2[playerid] = color2; Rainbow(playerid); rainbowon[playerid] = 1; SCM(playerid, COLOR_GREEN, "The rainbow is activated"); } else { SCM(playerid, COLOR_GREEN, "The rainbow is already activated"); } return 1; } Si de aici il cumperi! (NU CRED CA ARE NICI O PROBLEMA AICI, DAR POATE VA AJUTA!!) } case 9: { if(CarInfo[vsid][Spawned] == 0) return SendClientMessage(playerid, COLOR_LGREEN, "Eroare: Vehiculul tau nu este spawnat!"); if(CarInfo[vsid][cRainbow] == 1) return SCM(playerid, -1, "Acest vehicul este deja unul Rainbow!"); if(PlayerInfo[playerid][pPremiumPoints] < 50) return SCM(playerid, -1, "Nu ai destule puncte premium."); SetPVarInt(playerid, "VehicleID", vsid); ShowPlayerDialog(playerid, DIALOG_UPGRADERAINBOW, DIALOG_STYLE_MSGBOX, "Upgrade to Rainbow Vehicle", "Esti sigur ca vrei sa faci acest lucru?\nVei pierde 50 puncte premium.", "Da", "Nu"); } } case DIALOG_UPGRADERAINBOW: { if(!response) return 1; new idd = GetPVarInt(playerid, "VehicleID"); if(CarInfo[idd][Spawned] == 0) return SendClientMessage(playerid, COLOR_LGREEN, "Eroare: Vehiculul tau nu este spawnat!"); if(CarInfo[idd][cRainbow] == 1) return SCM(playerid, -1, "Acest vehicul este deja unul Rainbow!"); if(PlayerInfo[playerid][pPremiumPoints] < 50) return SCM(playerid, -1, "Nu ai destule puncte premium."); PlayerInfo[playerid][pPremiumPoints] -= 50; Update(playerid, pPremiumPointsx); SCM(playerid, COLOR_YELLOW, "* Felicitari! Ti-ai upgradat cu succes vehiculul la unul Rainbow."); format(string, sizeof(string), "%s si-a upgradat vehiculul %s[id: %d] la unul Rainbow pentru 50 puncte premium.", GetName(playerid), aVehicleNames[CarInfo[idd][cModel]-400], idd); InsertLog(playerid, string, LOG_SHOP); format(string, sizeof(string), "UPDATE `cars` SET `Rainbow`='1' WHERE `ID`='%d'", idd); mysql_query(SQL, string); }
  11. caltabos

    Vehicule gas

    Cum fac sa nu mai scada gaz-ul la vehicule in timp ce stau pe loc? GM Burned
  12. caltabos

    spectate problema

    lasa ca am rezolvat, mersi oricum
  13. caltabos

    spectate problema

    Cum pot sa fac sa nu-mi mai dee spawn ci sa-mi salveze pozitiile cand sunt spectate si apas tasta ALT? if(newkeys == KEY_WALK) { if(IsPlayerSpec[playerid] == 1) { TogglePlayerControllable(playerid, 1); TogglePlayerSpectating(playerid, 0); SetPlayerInterior(playerid,Unspec[playerid][sPint]); PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; Unspec[playerid][sLocal] = 255; gTeam[playerid] = PlayerInfo[playerid][pTeam]; SetPlayerToTeamColor(playerid); SendClientMessage(playerid, -1, "Nu mai esti spectator!"); SpecPlayers[playerid] = 0; SpawnPlayer(playerid); Spectate[playerid] = 255; LastRecon[playerid] = 1; PlayerTextDrawHide(playerid, SpectatorTD); IsPlayerSpec[playerid] = 0; }
  14. caltabos

    Putin ajutor

    pai da-ne include-ul Tu trebuie sa pui ceva de genu: if(PlayerInfo[playerid][pAdmin] >= 1) return 1;
  15. caltabos

    rainbow vehicle

    cum fac din dialogu asta, cand dezactiveaza rainbow sa ii dea culorile initiale la masina? :
×

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.