Jump to content

HunT

Retired Staff
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by HunT

  1. HunT

    Rank

    After getAccountData in the rank script add setElementData ,and u can use getElementData in the client dx HUD.
  2. HunT

    Rank

    U need delete the client and old scoreboard resource. First stop the resource scoreboard. Go to - MTA San Andreas / mods / deathmatch / resource / and delete scoreboard Go to - MTA San Andreas / server / mods / deathmatch / resource-cache / http-client-files /and delete scoreboard Back on server and /start scoreboard
  3. Can u use missionTimer for this,is really easy to make.
  4. Realy Tnx now work fine
  5. Yes i know this,but i no need replace the texture to vehicle. My script is "replace u skin by url" Example : This is the link image - http://i.imgur.com/K1Slj.png if i press the button = if i press the button work fine for me,but other player lock me with the default skin. I post the code but this is realy "raw" version,why i want make first the version work fine. --Client --onClientGUIClick link = guiGetText (the edit box) triggerServerEvent("downloadFile", getLocalPlayer(), link) -- Server addEvent("downloadFile", true ) function fileDownload(link,playerToReceive) fetchRemote ( link ,myCallback, "", false, playerToReceive ) end addEventHandler( "downloadFile", getRootElement(), fileDownload ) function myCallback( responseData, errno, playerToReceive ) if errno == 0 then triggerClientEvent( root, "onClientGotImage", resourceRoot, responseData ) end end -- client addEvent( "onClientGotImage", true ) addEventHandler( "onClientGotImage", resourceRoot, function(pixels) theShader = dxCreateShader("material/effect.fx", 0, 0, true, "ped" ) myTexture = dxCreateTexture( pixels ) if theShader and myTexture then dxSetShaderValue(theShader,"gTexture",myTexture) engineApplyShaderToWorldTexture(theShader,"army",localPlayer) end end )
  6. Tnx for now,test later. Edit: But I don't want replace the texture to everyone. I want replace the texture on player click but visible to everyone. You understand ?
  7. Hi guys. I'm working on new script and I need info about visibility shader. I have make this: With edit box the player enter the URL image. Get the URL - trigger server - fetchRemote - callback - trigger client - engineApplyShaderToWorldTexture Well, the script work fine, but this is visible on for the client. How I can make this visible to everyone?
  8. HunT

    Server GUI Skins

    Great suggestion. The owner of server can use the personaly GUI skin. onPlayerJoin CurrentSkin = getPlayerGUISkin() If not CurrentSkin == "name of custom skin" then setPlayerGUISkin (lp,custom skin) It's only example
  9. Anyway good job and good luck
  10. Ho il Nokia lumia e già lo detesto,figurati sul pc Windows 7 4ever
  11. Bucks? What is that Anyway for remove the bug texture delete the gtaset
  12. Chiedi a Talidan qui : viewforum.php?f=104
  13. Change the Z position to all objects,example +1.
  14. The script work but u can't view the objects if not u press "test" or F5 F5 or Test + /start "name resource" function onResourceStartDoThis() local leadShader = createObject(8838,2948.1564941406,-3046.544921875,-10.287460327148,0,0,91.007263183594) local shipParts1 = createObject(5167,2954.525390625,-3013.8371582031,8.9695568084717,0,0,90) local shipParts2 = createObject(5160,2954.525390625,-3015.7006835938,8.9695568084717,0,0,90) local shipParts3 = createObject(5166,2954.5446777344,-3015.7026367188,8.9695568084717,0,0,90) local shipParts4 = createObject(5158,2946.6257324219,-3159.0061035156,15.628360748291,0,0,180) local shipParts5 = createObject(5155,2946.4465332031,-3135.0407714844,24.955896377563,0,0,90) local shipParts6 = createObject(5156,2946.4440917969,-3071.3764648438,14.663120269775,0,0,90) local shipParts7 = createObject(5154,2946.544921875,-3046.2358398438,19.418611526489,0,0,90) local shipParts8 = createObject(5157,2946.4467773438,-2962.5090332031,20.719650268555,0,0,90) attachElements(shipParts1,leadShader) attachElements(shipParts2,leadShader) attachElements(shipParts3,leadShader) attachElements(shipParts4,leadShader) attachElements(shipParts5,leadShader) attachElements(shipParts6,leadShader) attachElements(shipParts7,leadShader) attachElements(shipParts8,leadShader) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),onResourceStartDoThis)
  15. Make u own gamemode with missionTimer https://wiki.multitheftauto.com/index.ph ... ssiontimer g_MissionTimer = exports.missiontimer:createMissionTimer (g_TimeLimit,true,"%m:%s",0.5,20,true,"default-bold",1,255,255,255) addEventHandler ( "onMissionTimerElapsed", g_MissionTimer, onTimeElapsed ) -- on finish the time start function onTimeElapsed --example function onTimeElapsed () destroyElement(g_MissionTimer) -- destroy current missionTimer --Here the function end
  16. getResourceRootElement ( getThisResource() )
  17. HunT

    A Shader....

    Folder with images like 1.png 2.png 3.png Function randomShader Get random number and make the patch image https://wiki.multitheftauto.com/wiki/En ... rldTexture setTimer randomShader
  18. HunT

    Car alarm

    So . . If the the Vehicle is locked = play If the the vehicle is unlocked = play other sound True? I reply with iPhone can't give example,anyway add the else.
  19. HunT

    Aiuto!

    Prima di tutto se voglio lo faccio,ma io non "lavoro" in questo modo perche per me è tutto tempo sprecato. Seconda cosa qui nessuno e superiore ad un altro. Che ne dici di fare tasto destro del mouse "ripristina versione precedente" e facciamo finta che non sia successo nulla? Già questo subForum e poco frequentato,se ci mettiamo a discutere anche su questo è finita.
  20. HunT

    Car alarm

    viewtopic.php?f=91&p=383222 Search before posting
  21. HunT

    Car alarm

    https://wiki.multitheftauto.com/wiki/On ... StartEnter https://wiki.multitheftauto.com/wiki/IsVehicleLocked
  22. HunT

    Aiuto!

    Se fai il presuntuoso cosa speri di ottenere? Questa sotto specie di "fight" l'hai creata tu.
  23. HunT

    Aiuto!

    Sei miticoooooooooooo!!!!!!!!!!!
  24. HunT

    Aiuto!

    Se metti in dubbio la mia esperienza per me non ci sono problemi. Ognuno ha i suoi metodi di scrittura. Per me puoi usare anche 200 righe per creare 5 testi,ma è tutto tempo perso che potresti usare per altre funzioni.
  25. For race mode u can use missionTimer (really easy) and markers. https://wiki.multitheftauto.com/index.ph ... ssiontimer
×
×
  • Create New...