-
Posts
698 -
Joined
-
Last visited
Everything posted by Sora
-
Can you please add my tool , it's one of the custom model creators it's an app that creates a ready zipped resource for the custom models viewtopic.php?f=108&t=68479
-
thanks The_Pain ^^
-
# Updated : 27/02/2013 now it's creates a ready zipped resource in the chosen output path
-
infernus id is 411 , not 516 , beside that you need to use meta tags in meta file ... extract the files then checkout my tool viewtopic.php?f=108&t=54302
-
Well done , specially using sql instead of xml is a great step keep it up
-
i didn't test it but resource seems okay just edit config file
-
Dont work. Bad argument @ triggerServerEvent[ Expected element at argument 2, got string "TheIceman" cause you didn't type any element , element is required triggerServerEvent ( "kickplayer",localPlayer,tostring(playerNameK), tostring(text)) localPlayer is predefined variable. also you need to use getPlayerFromName in the serverside function kickplay (playerNameK,text) if ( hasObjectPermissionTo ( source, "function.kickPlayer" ) ) then kickPlayer (getPlayerFromName(playerNameK), source, text ) end end addEvent ( "kickplayer", true ) addEventHandler ( "kickplayer", root, kickplay )
-
You're welcome ^^
-
Hello , we're cmo ( Coffee & Milk Organization ) We will make you feel better by drinking the high quality coffee which makes you relax and gives you a delicious taste ! Free coffee for Everyone
-
amazing job, good luck for you ^^
-
onMapStarting is a server event , you can't use it with a client function you have to use onClientMapStarting it would be like this function dmgm() dxDrawColorText("#ffffffHELLO WORLD Ghostmode is #00ff00ENABLED#FFFFFF!",750,y/20,574.0,20.0,tocolor(200,0,0,255),1,"default-bold","left","top",false,false,false,true) dxDrawImage (730,y/20,16,16,"icon/icon.png",0,-120) setTimer(function () removeEventHandler("onClientRender",root,dmgm) end,5000,1) end addEventHandler("onClientMapStarting",root,function () addEventHandler("onClientRender",root,dmgm) end) Edit : ah i almost forgot to tell you the dxDrawColorText is not a predefined function , you have to add it into your script : https://wiki.multitheftauto.com/wiki/DxDrawColorText but you also can enable the colorcoded feature which works only from mta 1.3.1 onwards dxDrawText("#ffffffHELLO WORLD Ghostmode is #00ff00ENABLED#FFFFFF!",750,y/20,574.0,20.0,tocolor(200,0,0,255),1,"default-bold","left","top",false,false,false,true)
-
also it have to be an direct url which ends with .mp3 or one of formats below supported sound formats are : MP3, WAV, OGG, RIFF, MOD, XM, IT and S3M.
-
You're welcome ^^
-
x,y,z = getElementPosition(getLocalPlayer()) weaponMarker = createMarker(x, y, z, "corona", 0.5, 255, 0, 0, 170) addEventHandler ( "onClientPreRender", root, function () if getPlayerWeapon(getLocalPlayer()) == 24 then muzX, muzY, muzZ = getPedWeaponMuzzlePosition(getLocalPlayer()) setElementPosition(weaponMarker,muzX, muzY, muzZ) end end) hmm i didn't try it but it should work
-
hmm this event will be handled when you face a player or aim him addEventHandler ( "onPlayerTarget",root, function (target) if getElementType (target) == "player" then -- if target is a player then local playerX, playerY, playerZ = getElementPosition(target) -- get his position weaponMarker = createMarker(playerX, playerY, playerZ, "corona", 0.5, 255, 0, 0, 170) -- create marker in his position attachElements(weaponMarker,target) -- attach the marker to the target end end) and this will be handled if you clicked the right button of mouse and checks the element etc.. addEventHandler("onPlayerClick",root, function (b,s) if p == "right" and s == "down" then -- if clicked button was right and buttons state is down then if getElementType (getPedTarget(source)) == "player" then -- if target is a player then local playerX, playerY, playerZ = getElementPosition(getPedTarget (source)) -- get his position weaponMarker = createMarker(playerX, playerY, playerZ, "corona", 0.5, 255, 0, 0, 170) -- create a marker in his position attachElements(weaponMarker,getPedTarget (source)) -- attach the marker to the target end end end) i hope this will help you i've wrote it quickly, forgive me if there's mistake in it
-
checkout wiki : https://wiki.multitheftauto.com/wiki/AttachElements This is not compatible with all elements. The following elements are compatible: Markers Blips Objects Players Vehicles Sounds Colshapes this means you can't attach a marker to weapon.
-
i think this because there are copies of resources which came in error with red color message for example there are two copies of freeroam one is zipped another is a folder i'm not sure , but checkout the resources path.
-
btw this is an open-source speactators resource https://community.multitheftauto.com/ind ... ls&id=3136
-
منورين الموضوع ^^
-
سيرفر addEventHandler("onPlayerSpawn",root, function () setCameraTarget (source,source) end)