-
Posts
857 -
Joined
-
Last visited
Everything posted by Blaawee
-
so what's do i have to do then if i can't set "setCameraMatrix" with the peds !
-
will, this is not what i want .. i'm making function cuse i have a lot of peds ! waiting for expert ..
-
is there any function to make the camera faceing the ped, i'm trying do it with : setCameraMatrix this what i'm tryin do : function setCamFacenPed ( thePed, x, y, z, lookAtX, lookAtY, lookAtZ ) x, y, z = getElementPosition( thePed ) lookAtX, lookAtY, lookAtZ = getElementRotation ( thePed ) return setCameraMatrix ( thePed, x, y, z, lookAtX, lookAtY, lookAtZ ) end male = createPed ( 0, 9.2, 11.95, 4.5171875,340 ) setCamFacenPed( male )
-
addEventHandler( "onClientResourceStart", resourceRoot, function()) لانك مستخدم الحدث عند تشغيل المود او بدأه "onClientResourceStart"
-
.. العفو بس ابيك تفهم شنو سويت انا
-
checking = false addEventHandler( "onClientResourceStart", resourceRoot, function() rulsewnd = guiCreateWindow( 460, 140, 403, 436, "Rule || القوانين", false ) guiSetAlpha( rulsewnd, 1.00 ) guiSetProperty( rulsewnd, "CaptionColour", "FF06D8E0" ) switch = guiCreateButton( 9, 27, 191, 50, "العربيه", false, rulsewnd ) guiSetFont( switch, "default-bold-small" ) guiSetProperty( arabic, "NormalTextColour", "FF0E09C9" ) ar = guiCreateStaticImage( 9, 105, 385, 273, "1.png", false, rulsewnd ) en = guiCreateStaticImage( 9, 105, 385, 273, "2.png", false, rulsewnd ) guiSetVisible ( en, false ) end ) function show() if guiGetVisible(rulsewnd)==true then guiSetVisible( rulsewnd, false ) showCursor(false) else guiSetVisible ( rulsewnd, true ) showCursor(true) end end addCommandHandler ( "القوانين", show ) addEventHandler ("onClientGUIClick", guiRoot, function( button, state, absoluteX, absoluteY ) if source == switch then if checking == false then guiSetText ( switch, "English" ) guiSetVisible ( en, true ) guiSetVisible ( ar, false ) checking = true elseif checking == true then guiSetText ( switch, "عربي" ) guiSetVisible ( en, false ) guiSetVisible ( ar, true ) checking = false end end end)
-
لييه تطولهآ وهي قصيره addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == arabic ) then rulesA = guiCreateStaticImage(0, 7, 550, 310,"1.png",false,Wnds1) elseif ( source == english ) then rulesE = guiCreateStaticImage(0, 7, 550, 310,"2.png",false,Wnds1) end end )
-
warpPedIntoVehicle
-
createObject -- سو الاوبجيكت moveObject -- حرك الاوبجيكت setTimer
-
Not Tested Client: function playTheSound( x, y, z, vehicle ) local sound = playSound3D( "sound.mp3", x, y, z ) if (isElement( vehicle )) then attachElements( sound, vehicle ) end end addEvent( "playTheSound", true ) addEventHandler( "playTheSound", root, playTheSound ) Server: function enterVehicle( thePlayer ) local x, y, z = getElementPosition( thePlayer ) if (isPedInVehicle( thePlayer )) then local vehicle = getPedOccupiedVehicle( thePlayer ) triggerClientEvent( root, "playTheSound", root, x, y, z, vehicle ) end end addEventHandler ( "onVehicleStartEnter", root, enterVehicle )
-
كيف يعني مطوور ! ي ليت توضح
-
end تضآف اذا كآن في استثنآء مثآل : ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit() if ann then setElementInterior ( localPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( localPlayer, 0 ) end addEventHandler ("onClientMarkerHit", root, onHit )
-
ann = createMarker( 286, -42, 1002.5, "arrow", 1, 150, 50, 0, 255 ) function onHit() setElementInterior ( localPlayer, 1, 289.7870, -35.7190, 1003.5160 ) setElementInterior ( localPlayer, 0 ) addEventHandler ("onClientMarkerHit", ann, onHit )
-
"Admin"> "general.ModifyOtherObjects" access="true"> "general.http" access="true"> "command.shutdown" access="true"> "command.install" access="true"> "command.aexec" access="true"> "command.debugscript" access="true"> "command.upgrade" access="true"> "command.crun" access="true"> "command.srun" access="true"> "command.run" access="true"> "function.addBan" access="true"> "function.removeBan" access="true"> "function.executeCommandHandler" access="true"> "function.setServerPassword" access="true"> "function.getServerPassword" access="true"> "function.createResource" access="true"> "function.copyResource" access="true"> "function.addResourceMap" access="true"> "function.addResourceConfig" access="true"> "function.removeResourceFile" access="true"> "function.setResourceDefaultSetting" access="true"> "function.removeResourceDefaultSetting" access="true"> "function.aclReload" access="true"> "function.aclSave" access="true"> "function.aclCreate" access="true"> "function.aclDestroy" access="true"> "function.aclSetRight" access="true"> "function.aclRemoveRight" access="true"> "function.aclCreateGroup" access="true"> "function.aclDestroyGroup" access="true"> "function.aclGroupAddACL" access="true"> "function.aclGroupRemoveACL" access="true"> "function.aclGroupAddObject" access="true"> "function.aclGroupRemoveObject" access="true"> "function.refreshResources" access="true"> "function.setServerConfigSetting" access="true"> "general.adminpanel" access="true"> "general.tab_players" access="true"> "general.tab_resources" access="true"> "general.tab_server" access="true"> "general.tab_maps" access="true"> "general.tab_bans" access="true"> "general.tab_adminchat" access="true"> "command.kick" access="true"> "command.freeze" access="true"> "command.mute" access="true"> "command.setnick" access="true"> "command.shout" access="true"> "command.spectate" access="true"> "command.slap" access="true"> "command.setgroup" access="true"> "command.sethealth" access="true"> "command.setarmour" access="true"> "command.setmoney" access="true"> "command.setskin" access="true"> "command.setteam" access="true"> "command.giveweapon" access="true"> "command.setstat" access="true"> "command.jetpack" access="true"> "command.warp" access="true"> "command.setdimension" access="true"> "command.setinterior" access="true"> "command.createteam" access="true"> "command.destroyteam" access="true"> "command.givevehicle" access="true"> "command.repair" access="true"> "command.blowvehicle" access="true"> "command.destroyvehicle" access="true"> "command.customize" access="true"> "command.setcolor" access="true"> "command.setpaintjob" access="true"> "command.listmessages" access="true"> "command.readmessage" access="true"> "command.listresources" access="true"> "command.start" access="true"> "command.stop" access="true"> "command.stopall" access="false"> "command.restart" access="true"> "command.execute" access="true"> "command.setpassword" access="true"> "command.setwelcome" access="true"> "command.setgame" access="true"> "command.setmap" access="true"> "command.setweather" access="true"> "command.blendweather" access="true"> "command.setblurlevel" access="true"> "command.setwaveheight" access="true"> "command.setskygradient" access="true"> "command.setgamespeed" access="true"> "command.setgravity" access="true"> "command.settime" access="true"> "function.updateResourceACLRequest" access="true"> "command.aclrequest" access="true"> "command.ACL" access="true">-- حطيته هنآ /--> "command.ban" access="true"> "command.unban" access="true"> "command.banip" access="true"> "command.unbanip" access="true"> "command.banserial" access="true"> "command.unbanserial" access="true"> "command.listbans" access="true">
-
ped1 = createPed( 87, -285.9, 1206, 73.5 ) setElementDimension( ped1, 1 ) setPedAnimation( ped1, "STRIP", "PLY_CASH" -1, true, false, true )
-
جرب .. Client : function showClientImage() img= guiCreateStaticImage( 500, 450, 250, 250, "4.png", false ) guiSetAlpha ( img, 0.7 ) end addEventHandler( "onClientResourceStart", root, showClientImage ) addEventHandler( "onClientGUIClick", root, function() if source == img then triggerServerEvent ( 'setTeam', getLocalPlayer () ) end end) Server : theTeam = createTeam ( "ADMIN" ) addEvent( "setTeam", true ) function setTheTeam( source ) setPlayerTeam ( source, theTeam ) end addEventHandler( "setTeam", root, setTheTeam ) سبقني مجنون فيك * تعديل ..
-
جرب زي كذآ طيب ! Server words = { 'Word1', -- غير الكلمآت اللي تبيهم 'word2', -- وهنا 'Word3', -- وهنا 'Word4' -- وهنا } g_resRoot = getResourceRootElement( getThisResource()) addEventHandler( "onResourceStart", g_resRoot, function() for k, v in ipairs( getElementsByType ( "player" ) ) do setElementData( g_resRoot, ""..getPlayerSerial( v )..".muted", false ) end end ) addEventHandler( "onPlayerChat", root, function ( msg, type ) for k, i in pairs( words ) do if string.find( msg, i ) then cancelEvent() local data = getElementData( g_resRoot, ""..getPlayerSerial( source )..".muted" ) if data == false then if type == 0 then local playerName = getPlayerName( source ):gsub( "#%x%x%x%x%x%x", "" ) setPlayerMuted( source, true ) setElementData( g_resRoot, ""..getPlayerSerial( source )..".muted", true ) outputChatBox("*".. playerName .." Has Been Muted By Console (1 min) [REASON : Requst Admin.]", root, 255, 0, 0 ) outputChatBox("* You Have Been Muted By Console (1 min) [REASON : Requst Admin.]", source, 255, 0, 0 ) setTimer( setPlayerMuted, 100000, 1, source, false ) setTimer( setElementData, 100000, 1, g_resRoot,""..getPlayerSerial( source )..".muted",false) setTimer( outputChatBox, 100000, 1, "*".. playerName .." Has Been Unmuted By Console.", root, 0, 255, 90 ) setTimer( outputChatBox, 100000, 1, "* You Have Been Unmuted By Console.", source, 0, 255, 90 ) else return end end end end end ) addEventHandler( "onPlayerJoin", root, function() if getElementData( g_resRoot, ""..getPlayerSerial(source)..".muted" ) == true then setPlayerMuted( source, true ) else setElementData( g_resRoot, ""..getPlayerSerial( source )..".muted", false ) end end )
-
ok, thx Aibo
-
Thx that's work, but it doesn't changed the others camera matrix -- Value = positionX, positionY, positionZ, lookAtX, lookAtY, lookAtZ local cameraPos = { { 1525.5999755859, 2833.5, 36.299999237061, 1524.8000488281, 2833.3999023438 , 35.299999237061 }, { 1464.4000244141, 2840.8999023438, 82.400001525879, 1453.5999755859, 2833.6999511719, 74.400001525879 }, { 1469.5, 2815.3000488281, 44.799999237061, 1470.0999755859, 2822.8000488281, 44.799999237061 }, --{ x, y, z, lookAtX, lookAtY, lookAtZ }, } local currentCamera = 0 function setCameraOnPlayerJoin() fadeCamera(source, true, 5) setCameraMatrix( source, unpack(cameraPos[currentCamera + 1]) ) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) function updateCamera() if (currentCamera == 3) then currentCamera = 0 else currentCamera = currentCamera + 1 end end setTimer(updateCamera, 5000, 0)
