SycroX Posted October 17, 2015 Share Posted October 17, 2015 --Client Side-- addEventHandler("onClientGUIClick", resourceRoot, function () if source == warpt2 then for i, player in ipairs(getElementsByType("player")) do if getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) == "Mafia" and player == localPlayer then triggerServerEvent ( "warp1", localPlayer ) end end end end ) -------------------------- --Server Side-- addEvent( "warp1", true ) addEventHandler("warp1", root, function () setElementDimension(player, 0) setElementInterior(player, 0) setElementPosition(player, -2686.1342773438, 1867.0648193359, 1318.4781494141) end ) Link to comment
TAPL Posted October 17, 2015 Share Posted October 17, 2015 مافيه اي تفاصيل؟ ايش تبي تسوي بالضبط! Link to comment
SycroX Posted October 17, 2015 Author Share Posted October 17, 2015 انا ابي اسحب تيم Mafia للأحداثيات دي معرف وش المشكلة ما يسحب لما ادوس الزر Link to comment
TAPL Posted October 17, 2015 Share Posted October 17, 2015 --Client Side-- addEventHandler("onClientGUIClick", resourceRoot, function() if source == warpt2 then triggerServerEvent("warp1", localPlayer) end end) --Server Side-- addEvent("warp1", true) addEventHandler("warp1", root, function() for i, player in ipairs(getElementsByType("player")) do if player ~= client then local team = getPlayerTeam(player) if team and getTeamName(team) == "Mafia" then setElementDimension(player, 0) setElementInterior(player, 0) setElementPosition(player, -2686.134, 1867.064, 1318.48) end end end end) 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