-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
well , i made the sound 50 % only > and give you lag ? is there any other sound scripts beside this on the server> ? if there is iam sure it's form it ,
-
, والله الحين كلها صايرة تقلد , حتى قراند العرب , ترا حرب العصابات موجود اول بسيرفر , اجنبي , اما بالنسبة للفكرة , بس اللي يغير السكربت ويغيره كليا , ذا يعتبر شي جديد ,
-
well , your right close button is not necessary , you can cheack if the window visible or not , like this , if ( guiGetVisible ( myWindow ) == true ) then -- check if the gui element is visible guiSetVisible ( myWindow, false ) -- if it is, we hide it else guiSetVisible ( myWindow, true ) -- if not, we make it visible and what you mean by is there anything else ? if you mean to open the panel not there isn't unless if you want to check if it's show , or not buy the code i posted ,
-
طيب وليه يحطها من الاساس ؟ ذي تسحب النافذة للامام , زي نظام guisetVisible . . ماشوف لها داعي ,
-
Thanks and I want the command/code to be /pizza just change the command name pizzopen , pizzaclose whatever you want,
-
if (hitElement == parachuteMarker) then ? Whats this ? HeHe, i was in hurry didn't have time to think about it , fixed , thanks
-
addCommandHandler ( 'pizzaopen', function () guiSetVisible (GUIEditor_Window[1], true) ----Name of the window, false to hide showCursor ( true ) --- false to hide end ) addCommandHandler ( 'pizzaclose', function () guiSetVisible (GUIEditor_Window[1], false) ----Name of the window, false to hide showCursor ( false ) --- false to hide end )
-
parachuteMarker = createMarker(1948.7705078125, -2225.1472167969, 13, "cylinder", 1.5, 255, 255, 0, 125) function markerHit(hitElement) if (getElementType(hitElement) == 'player' ) then outputChatBox("it's Working Yeaaah !", hitElement, getRootElement(), 255, 0, 0) triggerClientEvent(hitElement, "showParachuteGUI", hitElement) end end addEventHandler("onMarkerHit", parachuteMarker, markerHit)
-
consesionaria = createColRectangle ( 2194.671875, 429.2763671875, 18.957292556763, 300, 210 ) safeZoneRadar1 = createRadarArea ( 2194.671875, 429.2763671875, 300, 210, 0, 187, 255, 155 ) addEventHandler ( "onColShapeHit", consesionaria, function ( hitElement, matchingDimension ) if getElementType(hitElement) == "player" then toggleControl (hitElement, "fire", false ) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) end end ) addEventHandler ( "onColShapeLeave", consesionaria, function ( leaveElement, matchingDimension ) if getElementType(leaveElement) == "player" then toggleControl (leaveElement, "fire", true ) toggleControl (leaveElement, "aim_weapon", true) toggleControl (leaveElement, "vehicle_fire", true) end end )
-
Try This , addEvent('onZombieWasted', true) addEventHandler('onZombieWasted', root, function (attacker) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(attacker)),aclGetGroup("VIP")) then if (getElementType ( attacker ) == "player") and (getElementType ( source ) == "ped") then setElementData(attacker, "blood", getElementData( attacker, "blood" ) + 200 ) end end end ) + Make sure your in VIP Group , Not V.I.P , and add the resource in acl admin group reesource.name ,
-
well Type command is hard , i suggest use Keyboard Key , local Window = Window Name local Key = "F2" guiSetVisible(Window,false) bindKey(Key,"Down",function() if ( guiGetVisible(Window) == true ) then guiSetVisible(Window,false) showCursor(false) else guiSetVisible(Window,true) showCursor(true) end end)
-
you want if zombies enter the safe area or if player enter the area cant kill each other ?
-
triggerServerEvent --- لارسال الامر من الكلينت للسيرفر للتحقق من الرتبة , + if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("NAME"))) then --- للتحقق من القروب او الرتبة المعينة غير Name - لاسم القروب المعين , + مثال , https://forum.multitheftauto.com/viewtopic.php?f ... 7&p=690849
-
getPlayerVehicle ( player ) -- not function name like this , and player isn't defined outputChatBox("You don't have vehicle", thePlayer) thPlayer, isn't defined
-
function fix () local theVehicle = getPedOccupiedVehicle (localPlayer) if ( theVehicle ) then fixVehicle (theVehicle) outputChatBox ("Your vehicle has been fixed !" , localPlayer) end end addCommandHandler ("fix" , fix)
-
مشكلتك هنا , شيل السطور ذي , هاذا الكود يخلي اللوحة ورا , وماتقدر تضغط اغلاق او تستخدم شي , guiMoveToBack(LoginBall) guiMoveToBack(userpass) guiMoveToBack(v) guiBringToFront(v)
-
is this what you want ? addEventHandler('onZombieWasted', resourceRoot, function (attacker) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(attacker)),aclGetGroup("VIP")) then if ( attacker ) and ( getElementType ( source ) == 'ped' ) then setElementData(attacker, "blood", 100) end end end )
-
addEventHandler('onClientGUIClick', root, function () if ( localPlayer == comprar ) then triggerServerEvent('buycar', localPlayer) end end ) ---------ServerSide addEvent('buycar', true) addEventHandler('buycar', root, function (player) local thevehicle = getPedOccupiedVehicle( player ) if isPedInVehicle( player ) then if ( getPlayerMoney(source) >= getElementData(vehicle,"price")) then local sx, sy, sz = getElementPosition( player ) local rx, ry, rz = getElementRotation ( player ) local id = getElementID( thevehicle ) local r1, g1, b1, r2, g2, b2 = getVehicleColor (thevehicle) local userr = getAccountName( getPlayerAccount (player) ) if vehicles[id] then vehicles[id]["x"] = sx vehicles[id]["y"] = sy vehicles[id]["z"] = sz vehicles[id]["rotX"] = rx vehicles[id]["rotY"] = ry vehicles[id]["rotZ"] = rz vehicles[id]["r"] = r vehicles[id]["g"] = g vehicles[id]["b"] = b vehicles[id]["sr"] = r2 vehicles[id]["sg"] = g2 vehicles[id]["sb"] = b2 vehicles[id]["ptype"] = "user" vehicles[id]["owner"] = userr vehicles[id]["model"] = "411" setVehicleDamageProof(thevehicle, true) setVehicleColor(thevehicle, 255,255,0) setElementFrozen (thevehicle, false ) fromCacheToXML() end else outputChatBox("Error 5674: Dinero Insuficiente", player, 250,230,0) end end end )
-
Copy what i Post, replace it with you old code , then in meta.xml , make it serverside , and go test it , /debugscript 3 if there is any erros tell me ,
-
ياخوي , لازم تطرح الكود عشان نشوف وش الاخطاء فيه ,
-
I just told you you Can't ,
-
No You Can't Make Space between theme , or it will not work ,
-
addEventHandler("onPlayerLogin", root, function ( ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Owner")) then setPlayerTeam(source,getTeamFromName("Fast:OWarServerOwner")) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("ClanMananger")) then setPlayerTeam(source,getTeamFromName("Fast:OWarTeam-Mananger")) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then setPlayerTeam(source,getTeamFromName("Fast:OWarAdministradores")) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("SuperModerador")) then setPlayerTeam(source,getTeamFromName("Fast:OWarModeradores")) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Moderador")) then setPlayerTeam(source,getTeamFromName("Fast:OWarModeradores")) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Miembro")) then setPlayerTeam(source,getTeamFromName("Fast:OWarMiembros")) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("MiembroTrial")) then setPlayerTeam(source,getTeamFromName("Fast:OWarTeam-Mananger")) elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("V.I.P")) then setPlayerTeam(source,getTeamFromName("Fast:OWarV.I.P")) end end ) you Must delete the spaces in the names, and on starting function where is the () ? also there is alot of erros , i suggset like i said before , use mta script editor ,
