-
Posts
1,390 -
Joined
-
Last visited
-
Days Won
1
Everything posted by HunT
-
Non Complicarti la vita Se vuoi il country ip te lo do io completo di chat "onPlayerJoin" + le bandiere nel scoreboard. Se poi vuoi creare una cosa tutta tua non posso aiutarti perche per me questo è solo un hobby.Conosco il Lua ma non a questo punto Posso dirti però che puoi benissimo chiamare le funzione che ti servono nell' admin panel. La risorsa che ho io chiama l'ip del giocatore nel pannello admin e tramite un table converte la parola IT in italia,con questi elementi posso sia settare l'outputchat che il scoreboard. Fammi Sapere.
-
usa il TXDwork Shop per il .txd end 3DsMax per il .dff e .col end hai bisogno di script karma in 3DsMAX Good Luck
-
function setAdminColor(player) local theAccount=getPlayerAccount(player) if theAccount then local accountName = getAccountName(theAccount) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then -- Function Here . . . Example : setVehicleColor ( player, r, g, b , r2, g2, b2) -- u can set 4 color end end end function LoginAdmin() setTimer(setAdminColor,200,1,source) end addEventHandler("onPlayerSpawn",getRootElement(),LoginAdmin) This is for Admin but u can copy this for supermod and mod type : if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "SuperModerator" ) ) then onPlayerSpawn is ok for this.
-
L' user Panel che sto facendo ora infatti ha sia setElementData che setAccountData per ogni r,g,b cosi da usarlo sia server che client senza alcun problema.
-
meglio setAccountData direi,io uso questo. Siccome per settare il colore ti serve un evento server side (tipo onPlayerSpawn) forse è meglio usare set/get AccountData ElementData è ottimo per altri elementi perche puoi usarlo sia client che server side. Fai te insomma
-
non lo dici come l'hai risolto? e che epic fail hai creato?
-
GameServers4You, for all your gameserver needs.
HunT replied to GameServers4You's topic in Hosting solutions
Little Lag But Maybe is MTA 1.3 -
Include NamePart Example : /push mat or /push o6 for bind u can use /bind "key" (example p) "name" (example youself) = /bind p mati Enjoy (server-side) function pushim (thePlayer, commandName, ...) player = findPlayer(...) if not player then outputChatBox("* /push: player not found", thePlayer) elseif isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) x,y,z = getElementVelocity(vehicle) setElementVelocity ( vehicle, x, y, z+0.30) outputChatBox( getPlayerName(thePlayer).. " Push " ..getPlayerName(player), getRootElement(), 255, 255, 0, true) end end addCommandHandler("push", pushim) function findPlayer(namepart) for i, player in ipairs(getElementsByType("player")) do local name = getPlayerName(player) if string.find(name:lower(), namepart:lower(), 1, true) then return player, name end end return false end
-
hai dimenticato la parentesi per chiudere la funzione. addEventHandler("onClientResourceStart", resourceRoot, function() object1 = createObject(8558,3675.5,1256.7998046875,15.5,0,0,49.21875) setElementCollisionsEnabled(object1, false) end ) --questa
-
Sun mi deludi a parte che gli ho detto come fare,ma non vedi che ci sono 2 funzioni?
-
Eun post vecchio credo che abbia risolto
-
Ma Perche queste cose non le fai manualmente? Tipo: object1 = createObject(8558,3675.5,1256.7998046875,15.5,0,0,49.21875) setElementCollisionsEnabled(object1, false) --object2 object3 etc
-
Rega ma è una cazzata come hai fatto a fare l'user panel e non fare questo? Cmq devi editare il race_client Aggiungere la script spec Copiare la dxdrawtext di Map: ed aggiungere spec + le coordinate,tipo x+1 y+1 etc. .
-
Posta qui l'attuale codice e dimmi se ti da errori in /debugscript 3
-
Si ma tu non hai spiegato il problema e che colore vuoi i nomi.
-
Remove the directory folder in file .zip
-
allora . . .prima di tutto questa script ha la funzione dxDrawColorText,e quindi il colore della lista dei player appare tramite i codici,ad esempio #FF0000Hunterix ed esce Hunterix in rosso. Quindi dal colore che hai messo ti compare : Spectators: in blu Players in bianco (perche nessuno ha i codici colore) Se vuoi tutto di blu devi editare questo : -- linea 72 dxDraw[i] = dxDrawColorText (" "..name, textX, (textY + scale) + (dxGetFontHeight(scale,'bankgothic') * i), x, y, tocolor(255, 255, 255, 255), scale, 'bankgothic') Con Questo : -- linea 72 dxDraw[i] = dxDrawText (" "..string.gsub(name,"#%x%x%x%x%x%x",""), textX , (textY + scale) + (dxGetFontHeight(scale,'bankgothic') * i) , x, y, tocolor(0,149,255,255), scale, 'bankgothic') Ti consiglio anche di editare il bindKey con il mouse destro,e molto comodo senza dover premere f2. bindKey("mouse2","down",changeSpectatorsEnabled) Fammi sapere. Per il pannello non ho tempo ora shokkino,devo finire un sacco di cose prima.
-
Puoi Spammare liberamente cmq il mio msn è [email protected] aggiungimi tu
-
function setCloudEnable (false) ----- wtf? why (false) ? setCloudEnable (false) end addEventHandler ( "onPlayerJoin", getRootElement(), setCloudEnable ) Shok non puoi mettere lo stesso nome Cmq : function Cloud () setCloudEnable (false) end function timerCloud () setTimer(Cloud,1000,1) --questo fa ripartire la funzione ogni secondo addEventHandler ( "onResourceStart", getRootElement(), timerCloud ) addEventHandler ("onResourceStart",getResourceRootElement(getThisResource()),timerCloud)
-
devi aggiungere la risorsa zero blur e devi aggiungere in una script setCloudEnable (false) prova questa : https://community.multitheftauto.com/index.php?p= ... ails&id=44 apri il file client ed aggiungi : setCloudEnable (false)
-
Majid use the event onPlayerVehicleEnter onPlayerSpawn is not good for set the color vehicle.
-
Se cè anche il file Models\gta3.IMG molto probabilmente è una mod per il gta normale. Forse potrebbe laggare o addirittura crashare. Cmq ignora il file gta3.img e fai lo script come lo sparrow (come ti ha consigliato shok)
-
Te lo dice la parola stessa -.- fai partire la risorsa scoreboard
-
spe il problema e che ci sono due eventi su questa funzione. Fai cosi : addEventHandler ("onPlayerJoin",getRootElement(), function GetInfo () then -- e sotto ci metti tutti set get- e chiudi la funzione con end ) poi setti l'altro evento con : addEvent("showTehGUI",true) addEventHandler("showTehGUI", getRootElement(), GetInfo) il triggeserver gia c'e devi solo editare il onplayerjoin
-
Certo che va Bhe si l admin panel in community però e una versione vecchia. Grazie
