Jump to content

مشكله


Ahmed Eka

Recommended Posts

Just now, Abdul KariM said:

Client : 


addEventHandler ( "onClientGUIDoubleClick", root,

	function (  )
	
    if ( source == GUIEditor_Grid[1] ) then
	
	local row, col = guiGridListGetSelectedItem ( GUIEditor_Grid[1] )
	
	if ( row ~= -1 and col ~= -1 ) then
	
	local playername = guiGridListGetItemText ( GUIEditor_Grid[1], row, col )
	
	local thePlayer = getPlayerFromName ( playername )
	
	if ( thePlayer ) then

	triggerServerEvent ( "ShowInf" , localPlayer , thePlayer )
			
				end
			end
		end
	end
	) ;
	
addEvent ( "SetInf" , true )

addEventHandler ( "SetInf" , root , 

	function ( god, speed, lsd, heroin, weed, steroids, mescaline )

	guiSetText ( lblGod, " God "..god )

	guiSetText ( lblLSD, " LSD ".. lsd ) 

	guiSetText ( lblHeroin, " Heroin ".. heroin ) 

	guiSetText ( lblWeed, " Weed ".. weed ) 

	guiSetText ( lblSteroids," Steroids"..steroids ) 

	guiSetText ( lblMescaline, " Mescaline "..mescaline ) 


	end
	)	

 

Server : 


addEvent ( "ShowInf" , true )
addEventHandler ( "ShowInf" , root ,

	function ( player_ )

	local playerAcc = getPlayerAccount ( player_ )
	
	if ( playerAcc ) and  not ( isGuestAccount ( playerAcc ) ) then
	
    local god = getAccountData(playerAcc, "god")
	
    local speed = getAccountData(playerAcc, "speed")
	
    local lsd = getAccountData(playerAcc, "lsd")
	
    local heroin = getAccountData(playerAcc, "heroin")
	
    local weed = getAccountData(playerAcc, "weed")
	
    local steroids = getAccountData(playerAcc, "steroids")
	
    local mescaline = getAccountData(playerAcc, "mescaline")

	triggerClientEvent ( source , "SetInf" , source , tostring ( god ) , tostring ( speed ) , tostring ( lsd ) , tostring ( heroin ) , tostring ( weed ) , tostring ( steroids ) , tostring ( mescaline ) )
	
		end
	end
	)
 

 

بالتوفيق ان شاء الله 

شكرا لك 
تم الافاده 
..

  • Like 1
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...