Jump to content

مــــســــاعـــدهــ


Recommended Posts

السلام عليكم

عندي ذا الكود

هل هو صحيح ؟

سيرفر

  
    triggerServerEvent ( "OpenPanel" , localPlayer ) 
  

  
  
addEvent("OpenPanel",true) 
addEventHandler("OpenPanel",root, 
function (  ) 
guiSetVisible (window,not guiGetVisible (window) )  
     showCursor (guiGetVisible (window) ) 
   end 
 end) 
         
  

Edited by Guest
Link to comment
السلام عليكم

عندي ذا الكود

هل هو صحيح ؟

سيرفر

  
    triggerServerEvent ( "OpenPanel" , localPlayer ) 
  

  
  
addEvent("OpenPanel",true) 
addEventHandler("OpenPanel",root, 
function (  ) 
guiSetVisible (window,not guiGetVisible (window) )  
     showCursor (guiGetVisible (window) ) 
   end 
 end) 
         
  

triggerServerEvent -- Client  

:roll:

Link to comment

انا سويت ذا الكود

ابي يصير حدث ب عالم وهمي معين !

  
addCommandHandler ( "1234", 
function (Cmd , palyer , thePlayer) 
        if Cmd and getElementDimension(localPlayer) == 5456 then 
        acc = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Console" ) ) then 
        outputChatBox("-------- "..getPlayerName(player).." ----- ") 
                killPed ( source, thePlayer ) 
        setElementPosition(root, x, y, z) 
        setElementDimension(player, 0) 
      end 
   end   
)  
  
  
  
  
  

Link to comment

local x,y,z = 0,0,0 
local dimension = 0 
  
addCommandHandler ( "1234", 
function (thePlayer , cmd , arg) 
    if getElementDimension(thePlayer) == 5456 then 
        if ( isGuestAccount(getPlayerAccount ( thePlayer )) ) then return end 
        local acc = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Console" ) ) then 
            outputChatBox("-------- "..getPlayerName(player).." ----- ") 
            --killPed ( thePlayer ) 
            setElementPosition(thePlayer, x, y, z) 
            setElementDimension(thePlayer, dimension) 
        end 
    end   
end 
) 
  

السطر الاول حط الاحداثيات الي راح ينقل الكونسل لها , والسطر الثاني حط العالم الوهمي

-- وفيه شي غبي انه يقتل اللاعب وينقله بنفس الوقت كنسلت كود القتل ولاكن لو تبيه شيل العلامتين ذول

Link to comment
local x,y,z = 0,0,0 
local dimension = 0 
  
addCommandHandler ( "1234", 
function (thePlayer , cmd , arg) 
    if getElementDimension(thePlayer) == 5456 then 
        if ( isGuestAccount(getPlayerAccount ( thePlayer )) ) then return end 
        local acc = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Console" ) ) then 
            outputChatBox("-------- "..getPlayerName(player).." ----- ") 
            --killPed ( thePlayer ) 
            setElementPosition(thePlayer, x, y, z) 
            setElementDimension(thePlayer, dimension) 
        end 
    end   
end 
) 
  

السطر الاول حط الاحداثيات الي راح ينقل الكونسل لها , والسطر الثاني حط العالم الوهمي

-- وفيه شي غبي انه يقتل اللاعب وينقله بنفس الوقت كنسلت كود القتل ولاكن لو تبيه شيل العلامتين ذول

وماستخدمتها arg سطر 10 مانت معرف البلاير ومعرف

بالنسبة لصاحب الموضوع ضيف تحت سطر 10 لوب وخلاص

Link to comment

local x,y,z = 0,0,0 
local dimension = 0 
  
addCommandHandler ( "1234", 
function (thePlayer) 
    if getElementDimension(thePlayer) == 5456 then 
        if ( isGuestAccount(getPlayerAccount ( thePlayer )) ) then return end 
        local acc = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Console" ) ) then 
            outputChatBox("-------- "..getPlayerName(thePlayer).." ----- ") 
            --killPed ( thePlayer ) 
            setElementPosition(thePlayer, x, y, z) 
            setElementDimension(thePlayer, dimension) 
        end 
    end   
end 
) 
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...