Jump to content

مشكله *!


Recommended Posts

سلام عليكم عندي مشكله في مود 

addEventHandler("onClientGUIClick",root,
function()
if source == bu then
local rp = guiGridListGetItemText(gridplayer,guiGridListGetSelectedItem(gridplayer),1)
local DmAr = getPlayerFromName(rp)
triggerServerEvent("Chanllage", localPlayer, rp)
showCursor(true)
guiSetEnabled ( bu, false )
setTimer(guiSetEnabled,300,1,bu,true)
guiSetVisible(Gwin,true)
elseif source == accept then
guiSetEnabled ( accept, true )
setTimer(guiSetEnabled,300,1,accept,true)
triggerServerEvent("accept",source)
setPedSkin ( source, 280 )
elseif source == naccept then
guiSetEnabled ( naccept, true )
setTimer(guiSetEnabled,300,1,naccept,true)
guiSetVisible(Gwin,false)
guiSetEnabled ( bu, true )
setTimer(guiSetEnabled,300,1,bu,true)
--guiSetEnabled ( gridplayer, true )
elseif source == cl then
guiSetVisible(win,false)
showCursor(false)
end
end
)

انا مسوي مود تحديات كل ما اضغط على لاعب واكبس بوتين تجي لوحة ثانيه

 

اسم الوحة حقتي win 

والوحة الي ابيه ترسل من القريد ليست Gwin

Link to comment
addEventHandler("onClientGUIClick",root,
function()
if source == bu then
local rp = guiGridListGetItemText(gridplayer,guiGridListGetSelectedItem(gridplayer),1)
local DmAr = getPlayerFromName(rp)
triggerServerEvent("Chanllage", localPlayer, rp)
showCursor(true)
guiSetEnabled ( bu, false )
setTimer(guiSetEnabled,300,1,bu,true)
guiSetVisible(Gwin,true)
elseif source == accept then
guiSetEnabled ( accept, true )
setTimer(guiSetEnabled,300,1,accept,true)
triggerServerEvent("accept",localPlayer)
setPedSkin ( localPlayer, 280 )
elseif source == naccept then
guiSetEnabled ( naccept, true )
setTimer(guiSetEnabled,300,1,naccept,true)
guiSetVisible(Gwin,false)
guiSetEnabled ( bu, true )
setTimer(guiSetEnabled,300,1,bu,true)
--guiSetEnabled ( gridplayer, true )
elseif source == cl then
guiSetVisible(win,false)
showCursor(false)
end
end
)

 

Link to comment
4 minutes ago, Mhmd.z said:

addEventHandler("onClientGUIClick",root,
function()
if source == bu then
local rp = guiGridListGetItemText(gridplayer,guiGridListGetSelectedItem(gridplayer),1)
local DmAr = getPlayerFromName(rp)
triggerServerEvent("Chanllage", localPlayer, rp)
showCursor(true)
guiSetEnabled ( bu, false )
setTimer(guiSetEnabled,300,1,bu,true)
guiSetVisible(Gwin,true)
elseif source == accept then
guiSetEnabled ( accept, true )
setTimer(guiSetEnabled,300,1,accept,true)
triggerServerEvent("accept",localPlayer)
setPedSkin ( localPlayer, 280 )
elseif source == naccept then
guiSetEnabled ( naccept, true )
setTimer(guiSetEnabled,300,1,naccept,true)
guiSetVisible(Gwin,false)
guiSetEnabled ( bu, true )
setTimer(guiSetEnabled,300,1,bu,true)
--guiSetEnabled ( gridplayer, true )
elseif source == cl then
guiSetVisible(win,false)
showCursor(false)
end
end
)

 

كل ما ارسل لخوي لي ترسل+  

+ ابي ما يبين اسمي

الكود 

:


function update () 
guiGridListClear(gridplayer) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (gridplayer) 
guiGridListSetItemText (gridplayer,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) 
outputChatBox("[Chanllage System]Please Seclect Player",player,255,0,0,true)
end 
end
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 
addCommandHandler("ste",root,update)

 

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...