Anubis.
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by Anubis.
-
-
Sfatul meu este sa verifici OnPlayerSpawn sa nu ai cumva vreo functie ca sa-ti pune Hp-ul la 0.
-
Ai putea prin a expune comanda , iar cu flood-ul restart ? Nu scrie neaparat ca trebuie sa se restarteze servarul , incearca sa-ti adaugi o protectie impotriva botilor si ping iar dupa nu vei mai avea treaba.
-
Problema intalnita (descriere): Comanda /sellcarto cand doresc sa vad masina unui alt player , imi spune ca acel player nu are sufiecti bani , dar o pun si cu 1$ iar ace-l player are si 1m$ tot la fel imi spune.
Ero(area / rile) / warning-(ul / urile): --
Liniile de cod / sursa / script-ul(obligatoriu):CMD:sellcarto(playerid, params[]) { new id,price,string[128], keyid, idd; if(PlayerInfo[playerid][pPinLogged] == 0 && strlen(PlayerInfo[playerid][pPin]) != 1) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Contul tau este blocat. Scrie /pin pentru a il debloca si pentru a folosi aceasta comanda."); new valid = PlayerInfo[playerid][pCarKey1] + PlayerInfo[playerid][pCarKey2] + PlayerInfo[playerid][pCarKey3] + PlayerInfo[playerid][pCarKey4] + PlayerInfo[playerid][pCarKey5]; new car1 = PlayerInfo[playerid][pCarKey1], car2 = PlayerInfo[playerid][pCarKey2], car3 = PlayerInfo[playerid][pCarKey3], car4 = PlayerInfo[playerid][pCarKey4], car5 = PlayerInfo[playerid][pCarKey5]; if(valid == 0) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Nu ai un vehicul personal!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_YELLOW2, "Error: You aren't in any vehicle!"); new car = GetPlayerVehicleID(playerid); if(sscanf(params, "ui", id,price)) return SendClientMessage(playerid, COLOR_GREY, "Syntaxa: {FFFFFF}/sellcarto <Name/Playerid> <price>"); if(car == CarInfo[car1][Spawned]) idd = PlayerInfo[playerid][pCarKey1], keyid = 1; if(car == CarInfo[car2][Spawned]) idd = PlayerInfo[playerid][pCarKey2], keyid = 2; if(car == CarInfo[car3][Spawned]) idd = PlayerInfo[playerid][pCarKey3], keyid = 3; if(car == CarInfo[car4][Spawned]) idd = PlayerInfo[playerid][pCarKey4], keyid = 4; if(car == CarInfo[car5][Spawned]) idd = PlayerInfo[playerid][pCarKey5], keyid = 5; if(idd == 0) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Acest vehicul nu iti apartine!"); if(CarInfo[idd][Spawned] != car) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Nu esti in vehiculul tau personal"); if(CarInfo[idd][cSpecial] == 1) return SendClientMessage(playerid, COLOR_YELLOW2, "Error: Acces denined!"); if(PlayerInfo[playerid][pPinLogged] == 0 && strlen(PlayerInfo[playerid][pPin]) != 1) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Contul tau este blocat. Scrie /pin pentru a il debloca si pentru a folosi aceasta comanda."); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Acel player nu este conectat."); if(id == playerid) return SendClientMessage(playerid, COLOR_YELLOW2, "Error: You cannot sell car to yourself!"); if(FindCSlot(id) == -1) return SendClientMessage(playerid, COLOR_YELLOW2, "Error: Player have 5 vehicles!"); if(PlayerInfo[id][pCash] < price) return SendClientMessage(playerid, COLOR_YELLOW2, "Error: Player doesn't have enough money!"); format(string, sizeof(string), "* You offerd %s to buy your car for $%s .", GetName(id), FormatNumber(price)); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* Car Owner %s offered you to buy his/her car for $%s (type /accept car %d) to buy.", GetName(playerid), FormatNumber(price), playerid); SendClientMessage(id, COLOR_WHITE, string); OwnableCarOffered[id] = playerid; OwnableCarOffer[playerid] = id; OwnableCarID[id] = idd; OwnableCarSlot[id] = keyid; OwnableCarPrice[id] = price; return 1; }
Imagini / Video (optional):--
Ati incercat sa rezolvati singur?: Am incercat dar nu imi dau seama cum as putea sa modific cand verifica bani playerului care cumpara.
Gamemode WLG by VLM
in Gamemode-uri
Posted
Sql-ul nu e la zi
[10:27:08] Error ID: 1146, Error: Table 'anubiss98.playerlogs' doesn't exist [10:27:08] Callback: [10:27:08] gQuery: INSERT INTO playerlogs (`playerid`,`giverid`,`action`,`time`) VALUES ('1','0','[17-02-2020 10:27:08] Anubiss [user:1] bought a Infernus [car:27] for $90,000,000.','17-02-2020 10:27:08')
sunt cam multe lipsuri , poti pune baza recenta?