☠ RaZeR ☠ Posted February 6, 2016 Share Posted February 6, 2016 didn't want to kick me client ! addEventHandler ("onClientGUIClick",guiRoot, function ( ) if ( source == butoon1) then triggerServerEvent ( "kick", resourceRoot ) end end) server ! function fox () kickPlayer(source) end addEvent( "kick", true ) addEventHandler( "kick", resourceRoot, fox ) debug | expected player argument Link to comment
sheenidgs Posted February 6, 2016 Share Posted February 6, 2016 didn't want to kick me client ! addEventHandler ("onClientGUIClick",guiRoot, function ( ) if ( source == butoon1) then triggerServerEvent ( "kick", resourceRoot ) end end) server ! function fox () kickPlayer(source) end addEvent( "kick", true ) addEventHandler( "kick", resourceRoot, fox ) debug | expected player argument CLIENT triggerServerEvent ( "kick", resourceRoot, abc ) SERVER function fox ( player ) kickPlayer( player ) end In abc, make sure that's a player who you want to kick OR you can do this solution CLIENT triggerServerEvent ( "kick", targetPlayer ) SERVER function fox () kickPlayer( source ) end targetPlayer = the player that you want kick Link to comment
☠ RaZeR ☠ Posted February 6, 2016 Author Share Posted February 6, 2016 didn't want to kick me client ! addEventHandler ("onClientGUIClick",guiRoot, function ( ) if ( source == butoon1) then triggerServerEvent ( "kick", resourceRoot ) end end) server ! function fox () kickPlayer(source) end addEvent( "kick", true ) addEventHandler( "kick", resourceRoot, fox ) debug | expected player argument CLIENT triggerServerEvent ( "kick", resourceRoot, abc ) SERVER function fox ( player ) kickPlayer( player ) end In abc, make sure that's a player who you want to kick OR you can do this solution CLIENT triggerServerEvent ( "kick", targetPlayer ) SERVER function fox () kickPlayer( source ) end targetPlayer = the player that you want kick Z?? Link to comment
Tomas Posted February 6, 2016 Share Posted February 6, 2016 No need to define another variable function fox () kickPlayer(client) end addEvent( "kick", true ) addEventHandler( "kick", resourceRoot, fox ) Link to comment
☠ RaZeR ☠ Posted February 6, 2016 Author Share Posted February 6, 2016 No need to define another variable function fox () kickPlayer(client) end addEvent( "kick", true ) addEventHandler( "kick", resourceRoot, fox ) thanks Pro Works ! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now