-
Posts
314 -
Joined
-
Last visited
Everything posted by gokalpfirat
-
It works but i have got 2 problems. Projectile is blowing near when car is moving and timer doesnt works.
-
Lots of code Can you only write a fix
-
It works but at my last post i say too it fires left sometimes.I want fire to infront of car. When i look left it fires in front of car but. I want it always fires infront of car
-
No one knows my error
-
g_P = getLocalPlayer() rocketTimer = false g_V = getPedOccupiedVehicle(g_P) rotX,rotY,rotZ = getElementRotation(g_V) function rocket() if not rocketTimer then local x,y,z = getElementPosition(g_P) createProjectile(g_P, 19, x,y - 10,z + 1, 200,nil,rotX,rotY,rotZ) rocketTimer = setTimer(function() rocketTimer = false end, 3000, 1) else outputChatBox("You must wait 3 seconds to fire again", 0, 255, 0, true) end end function onResourceStart() bindKey("lctrl", "down", rocket) end addEventHandler("onClientResourceStart", resourceRoot, onResourceStart) I scripted this it works but sometimes rocket goes backwards of vehicle. I want it always go infront of vehicle. Like hunter.
-
When i use this g_P = getLocalPlayer() rocketTimer = false g_V = getPedOccupiedVehicle(g_P) function rocket() if not rocketTimer then createProjectile(g_P, 19, getElementPosition(g_V), 200) rocketTimer = setTimer(function() rocketTimer = false end, 3000, 1) else outputChatBox("You must wait 3 seconds to fire again", 0, 255, 0, true) end end function onResourceStart() bindKey("lctrl", "down", rocket) end addEventHandler("onClientResourceStart", resourceRoot, onResourceStart) It wont work and when i use aibo s it blows near my car:)
-
I create this script but it wont work. It must do when we press ctrl it will fire hunter rocket. I use this script in my map. You can use rocket 1 time in 3 seconds. There is the code its client side. g_Root = getRootElement() g_P = getLocalPlayer() function onResourceStart(res) setElementData(g_P,"rocket",1) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),onResourceStart) function rocket (thePlayer) if (getElementData(thePlayer,"rocket")==1) then createProjectile(getLocalPlayer(),19,getElementPosition(getLocalPlayer()),200) rocketT = setTimer(timey,3000,1) else outputChatBox("You must wait 3 seconds to fire again",thePlayer,0,255,0,true) end end bindKey("ctrl","down",rocket) function timey () setElementData(g_P,"rocket",1) killTimer(rocketT) end
-
Use Dikkat-Host if you want germany location and cheap vps.
-
Hi MTA Players, Me and some of my friends arecreating new host. We have got 10 Germany Location Server and 7 Netherlands Server. We have got options. Germany Location Linux VPS: De-1 VPS: CPU : 2.80 GHz Ram:128/256 Mb Disk Space: 15 GB Data Transfer: 200 GB Traffic: 300 GB Guaranteed Ram: 128 Mb Burstable Ram: 256 Mb Connection: 1000mbit IP Adress: 1 IP Free Sa-Mp and Mta install! Only For: 7$/month Out Of Stock De-2 VPS: CPU: 2X2.8 GHZ(2 Cores) Disk Space: 25 GB HDD Traffic: 350 GB Guaranteed Ram: 256 Mb Burstable Ram:512 MB Connection:1000mbit Ip Adres: 2 Ips Free Sa-Mp and Mta install! Only For: 11$/month De-3 VPS: CPU: 3X2.8GHZ(3 Cores) Disk Space: 45 GB HDD Traffic: 650 GB Guaranteed Ram: 512 MB Burstable Ram: 1024MB Connection: 1000mbit IP Adress: 3 IPs Free Sa-Mp and Mta install! Only For: 17$/month De-4 Vps: CPU: 4X2.8 GHZ( 4 Cores) Disk Spaces: 85GB HDD Traffic: 1 TB Guaranteed Ram: 1024 MB Burstable Ram: 2048 Connection: 1000Mbit Ip Adress: 4 Ips Free Sa-Mp and Mta install! Only For: 30$/month De-5 VPS: CPU: 5X2.8GHZ(5 Cores) Disk Space:150 GB Traffic: 1.5TB Guaranteed Ram: 2048 mb Burstable Ram: 4096 Connection: 1000 Mbit Ip Adress: 5 Ips Free Sa-Mp and Mta install! Only For: 57$/month Skype:gokosfirat Msn: [email protected] All VPS Have: FTP Mysql Game Panel(Designing) References: -LoM- #1 DD/DM/Fun Mta-Turkey RPG Netherlands and Turkey Servers are coming. Website is in under consider.
-
setElementVisibleTo(marker1,thePlayer,false) There is visible function
-
Use not if (vehicle) then Use: if vehicle then
-
I write in server side and not working can you fix it?
-
need for speed nos?
-
Anyone know my question's answer
-
function onResourceStart(res) createBlip (-1942.72265625,667.845703125,46.5625,56) marker1 = createMarker (-1917.5,671.4345703125,45.5625,"cylinder",1.2,0,255,0) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),onResourceStart) function visible (thePlayer) acc = getPlayerAccount (thePlayer) if (getAccountData(acc,"drive")==1) then setElementVisibleTo(marker1,thePlayer,false) else setElementVisibleTo(marker1,thePlayer,true) end end
-
function visible (thePlayer) acc = getPlayerAccount (thePlayer) if (getAccountData(acc,"drive")==1) then setElementVisibleTo(marker1,thePlayer,false) else setElementVisibleTo(marker1,thePlayer,true) end end I use this too but doesnt works.
-
--server side g_Root = getRootElement() function visible (thePlayer) acc = getPlayerAccount (thePlayer) if (getAccountData(acc,"drive")==1) then triggerClientEvent ( "onDriving", g_Root ) else triggerClientEvent ( "onElse", g_Root ) end end --client side g_Root = getRootElement() function setVisible() local player = getLocalPlayer() setElementVisibleTo(marker1,player,true) end addEvent("onDriving",true) addEventHandler("onDriving",g_Root,setVisible) function elsev() local player = getLocalPlayer() setElementVisibleTo(marker1,player,false) end addEvent("onElse",true) addEventHandler("onElse",g_Root,elsev) I havent got error at debug dont ask.
-
No one scripts a copy of a system and you earn in fileml:S
-
There is a mail() function at PHP you can use PHP module to send mail.
-
Can i use attach element? Its not my problem but i want to know:)
-
No resource like this and no one create a resource for you. You should script yourself.
-
I dont think so Im playing at FFS in my free time and the images are same!
-
But You can disable tabs which you want at acl, JR10
-
Use debugscript and say what error message you got?
-
Open race_client.lua and find bindKey ( next(getBoundKeys"enter_exit"), "down", "Commit suicide" ) and delete it.