Jump to content

تحديد البلب


Recommended Posts

المشكله لا حددت الاعب ماتختفي العلامه حاولت اسوي لها تايمر لا حدد الاعب ثواني وتختفي العلامه تلقائي

مازبط

ابي لاضغطت ع الزر تطلع له علامه ثواني وتختفي .. للمعلومية ماعدلت بالكود غير التايمر

شوفولي حل

playerb = {} 
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[3] then 
local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
if name ~= "" then 
local playern = getPlayerFromName(tostring(name)) 
playerb = createBlipAttachedTo(playern,48) 
elseif source == GUIEditor.button[3] then 
if isElement(playerb) then 
setTimer( destroyElement(Blip), 1000, 1, playern )  
end 
end 
end 
end 
) 

Link to comment
playerb = {} 
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[3] then 
local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
if name ~= "" then 
local playern = getPlayerFromName(tostring(name)) 
playerb = createBlipAttachedTo(playern,48) 
elseif source == GUIEditor.button[3] then 
if isElement(playerb) then 
setTimer( destroyElement(playerb), 1000, 1 ) 
end 
end 
end 
end 
) 

Link to comment
playerb = {} 
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[3] then 
local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
if name ~= "" then 
local playern = getPlayerFromName(tostring(name)) 
playerb = createBlipAttachedTo(playern,48) 
elseif source == GUIEditor.button[3] then 
if isElement(playerb) then 
setTimer( destroyElement(playerb), 1000, 1 ) 
end 
end 
end 
end 
) 

اررررررررررحب ب الدخلةة

مازان العلامه ماتختفي :(

Link to comment
  
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[3] then 
local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
if name ~= "" then 
local playern = getPlayerFromName(tostring(name)) 
playerb = createBlipAttachedTo(playern,48) 
setTimer( destroyElement, 3000, 1, playerb ) 
end 
end 
end 
) 

Link to comment
  
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[3] then 
local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
if name ~= "" then 
local playern = getPlayerFromName(tostring(name)) 
playerb = createBlipAttachedTo(playern,48) 
setTimer( destroyElement, 3000, 1, playerb ) 
end 
end 
end 
) 

ايوة كذا تمام

اشكرك

حسان

..

كان قصدي سفاح العلامه تختفي بعد ثواني من التحديد

اشكرك سفاح

ططلب ثاني الحين لا ضغط ع البوتون يموت الاعب بعد التحققات اللي مسويها انا

لكن مو راضي يموت سويت ترايقر

ومفروض الاعب لا ضغط الزر يموت لكن مادري وش المشكله

...

كلنت

addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[10] then 
triggerServerEvent("pkill"", localPlayer, Player) 
if name ~= "" then 
  
end 
end 
end 
) 
 

سيرفر

addEvent ( "pkill" , true ) 
addEventHandler ( "pkill", root, function ( player ) 
                antispam[getPlayerSerial( player )] = getTickCount  
                setTimer( killPed, 10000, 1, player )  
                setElementFrozen ( player, true )  
                outputChatBox( "ستموت بعد 10 ثواني أنتضر ... ", player, 255, 0, 0 )  
  
        end  
    )  

Link to comment

الكلنت فيه خطا ,

addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[10] then 
triggerServerEvent("pkill", localPlayer, Player) 
if name ~= "" then 
  
end 
end 
end 
) 

+ استعمل بدال killPed

setElementHealth 

مايحتاج تسوي ترايقر للسيرفر , خله كله كلنت ,

Edited by Guest
Link to comment
addEvent ( "pkill" , true ) 
addEventHandler ( "pkill", root, function ( player ) 
                antispam[getPlayerSerial( player )] = getTickCount    
                setTimer( killPed, 10000, 1, player )  
                setElementFrozen ( player, true )  
                outputChatBox( "ستموت بعد 10 ثواني أنتضر ... ", player, 255, 0, 0 )  
  
        end  
    )  

المشكله كانت بسطر ذا

 antispam[getPlayerSerial( player )] = getTickCount  

مسحته كامل صارت تطلع الرساله بشات بس مايجي له فريز ولا يموت :(

Link to comment
------ حطه كله كلنت , 
  
addEventHandler("onClientGUIClick",root, 
function(player) 
if source == GUIEditor.button[10] then 
      setTimer( setElementHealth, 10000, 1,0, player ) 
      setElementFrozen ( true , player ) 
      outputChatBox( "ستموت بعد 10 ثواني أنتظر ... ", player, 255, 0, 0 ) 
if name ~= "" then 
end 
end 
end 
) 
  

[/lua]

Edited by Guest
Link to comment

مو شغال ومافي اخطاء ..

addEventHandler("onClientGuiClick",root, 
function(player) 
if source == GUIEditor.button[10] then 
      setTimer( setElementHealth, 10000, 1,0, player ) 
      setElementFrozen ( true , player ) 
      outputChatBox( "ستموت بعد 10 ثواني أنتظر ... ", player, 255, 0, 0 ) 
if name ~= "" then 
end 
end 
end 
) 

Link to comment
addEventHandler("onClientGUIClick",root, 
function() 
if source == GUIEditor.button[10] then 
      setTimer( setElementHealth, 10000,1, getLocalPlayer() ,0.0 ) 
      setElementFrozen ( getLocalPlayer() , true ) 
      outputChatBox( "ستموت بعد 10 ثواني أنتظر ... ") 
      if name ~= "" then 
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...