-
Posts
1,411 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
8x 16 Slot servers for free! gta-servers.net giveaway!
WASSIm. replied to =FAS=Shigawire's topic in Hosting solutions
best hosting -
8x 16 Slot servers for free! gta-servers.net giveaway!
WASSIm. replied to =FAS=Shigawire's topic in Hosting solutions
Location: Germany Email: [email protected] -
change source to root
-
download this: https://community.multitheftauto.com/index.php?p= ... ls&id=7401
-
no no no i want if player hit zone start triggerClientEvent and if stop remove triggerClientEvent
-
hi guys how remove triggerClientEvent addEventHandler("onColShapeHit", getRootElement(), function test (hitElement) if (source == zone) and getElementType ( hitElement ) == "player" then triggerClientEvent ("BARhealth", hitElement, nemesis) end end) addEventHandler("onColShapeLeave", getRootElement(), function (leaveElement) if (source == zone) and getElementType ( leaveElement ) == "player" then triggerClientEvent ("BARhealth", hitElement, nemesis) end end)
-
Is that everything you can say? Well why don't you create it your self? Instead of post other people their code and let us fix it. You did not even mention the owner of this script, in my opinion this one can be locked. -_____________- i create this script and i want fixed it
-
function enterVehicle() if ( source == hunter ) and (isVehicleLocked(hunter)) then outputChatBox ("* Vehicle locked for a few minutes *", enteringPlayer, 255, 0, 0) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
-
function startMySound() sound = playSound( "sound.mp3", false ) end addCommandHandler ( "startsound", startMySound )
-
Projectile not working rocket = { } col = { } theProjectile = { } function move ( ) for k, v in ipairs(getElementsByType ("vehicle")) do if getElementModel(v) == 600 then if not rocket [ v ] then local x, y, z = getElementPosition (v) rocket [ v ] = createObject ( 3267, x, y, z) col [ v ] = createColSphere ( x, y, z, 50) attachElements (rocket[ v ], v, 0, -1.7, -0.4) attachElements (col [ v ], rocket [ v ], 0, 0, 0) end end end for k, v in ipairs(getElementsByType ("player")) do local theVehicle = getPedOccupiedVehicle ( v ) if (theVehicle) then if (getElementModel(theVehicle) == 600) and (rocket) then local xt, yt, zt, rxt, ryt, rzt = getCameraMatrix(theVehicle) --attachElements (rocket[ v ], theVehicle, 0, -1.7, -0.4, 0, 0, ryt ) end end end end addEventHandler ( "onClientRender", root, move) function shot(player) if getElementType(player) == "player" then if getPedOccupiedVehicle(player) then if getVehicleType(getPedOccupiedVehicle(player)) == "Helicopter" or getVehicleType(getPedOccupiedVehicle(player)) == "Plane" then if isElementWithinColShape(player,col [ v ]) then local x, y, z = getElementPosition ( rocket [ v ] ) theProjectile [ v ] = createProjectile(player,x,y,z+10,1) end end end end end function onHit(hitElement) if hitElement and getElementType(hitElement) == "player" then if isTimer(shootTimer) then killTimer(shootTimer) end shootTimer = setTimer(shoot,2500,0,hitElement) end end addEventHandler("onColShapeHit",getRootElement(),onHit) function onLeave() if isTimer(shootTimer) then killTimer(shootTimer) end end setDevelopmentMode ( true ) addEventHandler("onColShapeLeave",getRootElement(),onLeave)
-
try this: MilitaryN = guiCreateLabel(104, 427, 70, 19, "", false, TeaSelectorWin) guiLabelSetColor(MilitaryN, 106, 105, 109) addEventHandler('onClientRender',root, function ( ) local Count = countPlayersInTeam ( getTeamFromName ( 'Military' ) ) guiSetText ( MilitaryN, Count ) end )
-
its already working position but my problem projectile and rotation object like camera not working
-
1- Projectile not working 2- Rotation object not moveing
-
hi all i have problem in rotation (minigun1) i want rotation like target projectile on vehicle addEventHandler("onClientResourceStart", root, function( ) for k, v in ipairs(getElementsByType ("vehicle")) do if getElementModel(v) == 600 then minigun1= createObject ( 3267,getElementPosition (v)) attachElements (minigun1, v, 0, -1.7, -0.4) end end end ) function move ( ) theVehicle = getPedOccupiedVehicle ( localPlayer ) if (theVehicle) then if (getElementModel(theVehicle) == 600) and (minigun1) then bindKey ( "vehicle_fire", "down", shot ) local xt, yt, zt, rxt, ryt, rzt = getCameraMatrix(localPlayer) attachElements (minigun1, theVehicle, 0, -1.7, -0.4, 0, 0, zt ) else unbindKey ( "vehicle_fire", "down", shot ) end end end addEventHandler ( "onClientRender", root, move) function shot( ) theVehicle = getPedOccupiedVehicle ( localPlayer ) if (theVehicle) then if getElementModel(theVehicle) == 600 and minigun1 then local x, y, z = getElementPosition ( minigun1 ) local rx,ry,rz = getElementRotation ( minigun1 ) theProjectile = createProjectile(theVehicle,20,x,y,z+10,1,vehicle) end end end
-
i remove some object with map editor but not removed and i change scale object with map editor too but i see changed but really its not changed