Jump to content

طلب كود


Jw8.

Recommended Posts

تفضل الكود:

وعذرأ علي الخطأ

onPlayerDamage

بتصير

"onPlayerWasted"

غير مجرب :

-- Client Side --

addEventHandler ( "onPlayerWasted", root,
	function ( ammo, attacker, weapon, bodypart )
		if ( attacker ) then
			triggerClientEvent ( root, "GridList", resourceRoot, getPlayerName ( source ), getPlayerName ( attacker ) )
		end
	end
)

-- Server Side --

addEvent ( "GridList", true )
addEventHandler ( "GridList", root,
	function ( name, name2 )
		guiGridListClear ( grid )
			local row = guiGridListAddRow ( grid )
			guiGridListSetItemText ( grid, row, 1, name2.." has been killed "..name, false, false )
		end
	end
)

 

Edited by -Le[3]bA.
Link to comment
47 minutes ago, -Le[3]bA. said:

تفضل الكود:

وعذرأ علي الخطأ

onPlayerDamage

بتصير


"onPlayerWasted"

غير مجرب :

-- Client Side --


addEventHandler ( "onPlayerWasted", root,
	function ( ammo, attacker, weapon, bodypart )
		if ( attacker ) then
			triggerClientEvent ( root, "GridList", resourceRoot, getPlayerName ( source ), getPlayerName ( attacker ) )
		end
	end
)

-- Server Side --


addEvent ( "GridList", true )
addEventHandler ( "GridList", root,
	function ( name, name2 )
		guiGridListClear ( grid )
			local row = guiGridListAddRow ( grid )
			guiGridListSetItemText ( grid, row, 1, name2.." has been killed "..name, false, false )
		end
	end
)

 

في عندك أخطأء

 

Server = Client

Client = Server في لخبطه -_- 

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