Jump to content

TheGodfather

Membru
  • Posts

    490
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by TheGodfather

  1. Este scrisa pe ultimul rand din mesajul meu de mai sus
  2. Salut, am un bug in care arata jucatorului in /v ca masina/masinile pe care le are sunt ocupate chiar daca nu sunt. Cand dau /v da return la functia asta: stock ShowPlayerVehicle(playerid, bool: type) { if(aspam[playerid] > 0) return SCMEx(playerid, COLOR_LIGHTRED, "[Command Anti-Spam] {FFFFFF}Wait %d seconds.", aspam[playerid]); new szTitle[2000], szDialog[2000], x = 0; if(Iter_Count(MyVehicle[playerid]) == 0) return SCM(playerid, COLOR_LGREEN, "Error: You do not have a personal vehicle!"); format(szTitle, sizeof(szTitle), "Your Vehicles {E3DE31}%d/%d", Iter_Count(MyVehicle[playerid]), GetSlots(playerid)); strcat(szDialog, "Vehicul\tStatus\tDespawn Time\tOthers details\n"); foreach(MyVehicle[playerid], car) { format(szDialog, sizeof(szDialog), "%s%s\t%s\t%s\t%s\n", szDialog, aVehicleNames[CarInfo[car][cModel]-400], CarInfo[car][Spawned] != 0 ? IsVehicleOccupied(CarInfo[car][Spawned]) ? ("{FFFF00}[occupied]") : ("{26B309}[spawned]") : ("{FF0000}[despawned]"), CheckDespawnCar(car), TotalUp(car)); PlayerInfo[playerid][pCarKey][x] = car; x++; } ShowPlayerDialog(playerid, type ? DIALOG_STICKET : DIALOG_GARAGE, DIALOG_STYLE_TABLIST_HEADERS, szTitle, szDialog, "Ok", "Exit"); return true; } function IsVehicleOccupied(vehicleid) return VehicleOccupied[vehicleid] != 0 ? (true) : (false);
  3. Salut, am un gamemode in limba romana si as vrea sa ii fac o versiune in limba engleza. Care e cea mai eficienta metoda pentru asta? Multumesc anticipat
  4. Salut, am aceasta comanda /servername dar nu trimite mesajul acela tuturor playerilor, numele la server se schimba corect. if(strcmp(cmdtext, "/servername", true) == 0) { if(PlayerInfo[playerid][pAdmin] < return SCM(playerid, COLOR_WHITE, AdminOnly); new newstring[512], idx, tmp[512]; tmp = strtok(cmdtext, idx); if(strlen(cmdtext[12]) < 1) return SCM(playerid, COLOR_GREY,"Syntax: /servername <nume server>"); format(tmp, sizeof(tmp), "hostname %s", cmdtext[12]); SendRconCommand(tmp); format(newstring, sizeof(newstring), "[SERVER] {FFFFFF}Fondator {DA0000}%s {FFFFFF}a schimbat numele server-ului in {FFFFFF}'%s'.", GetName(playerid), cmdtext[12]); SCMTA(COLOR_LIGHTBLUE, newstring); return 1; }
  5. Salut, aveti idee cum pot adauga text aici? de exemplu sub worldtime sa fie text1 si sub 23:00 text2
  6. The Godfather#0066 discord, incercam sa rezolvam acolo daca vrei.
  7. Up up dar cand faci gamemode-ul ”free” chiar free?
  8. gamemode b-hood free care nu e free, makes sense xd
  9. Inca apare sistemul VIP random pe vehiculele cumparate din dealership
  10. Am instalat toata libraria, \pawno\include\YSI_Players\y_android\y_android_entry.inc(90) : fatal error 100: cannot read from file: "..\..\YSI_Core\y_core\y_rconfix"
  11. Primesc eroarea asta cand pun codul in sublime: \pawno\include\YSI_Players\y_android\y_android_entry.inc(89) : fatal error 100: cannot read from file: "..\..\YSI_Core\y_core\y_core_entry"
  12. Nu reusesc sa descarc libraria, imi dai un link te rog?
  13. Salut, am incercat metoda asta pentru a da kick playerilor care joaca de pe telefon dar inca pot intra. Ma puteti ajuta? La functia OnPlayerLoginIn am adaugat if(FPS2[playerid]-1 == 0) {SCM(playerid, COLOR_CLIENT, "You can not play from a phone. This server is pc only."); new string[128]; format(string, sizeof(string), "AdmBot: %s was kicked by AdmBot, reason: playing from a phone.", GetName(playerid)); SendAdminMessage(COLOR_LIGHTRED, string, 1); return KickEx(playerid);} Am cautat peste tot prin GM ce inseamna acel FPS2[playerid]-1 dar nu gasesc, uneori cand sunt aratate FPS-urile, de ex la comanda /id apare FPS[playerid], dar uneori apare FPS[playerid]-1. Cum imi pot da seama ca un jucator joaca de pe telefon?
  14. Daca pun un alt interior imi da doar cerul in jurul meu, tot albastru fara nimic.
  15. Salut, nu are nicio relevanta numele meu
×
×
  • Create New...

Important Information

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.