prodigy285 Posted July 4, 2013 Share Posted July 4, 2013 Does any body have a script like if a regular user enters the area it kills them or spawn them some were else please i really need one and if you do find one can you tell me how to find the size of the area. Link to comment
iMr.3a[Z]eF Posted July 4, 2013 Share Posted July 4, 2013 do you mean that you want only a team can go inside the area? Link to comment
iMr.3a[Z]eF Posted July 4, 2013 Share Posted July 4, 2013 createColSphere "onColShapeHit" -- event getPlayerTeam outputChatBox else killPed or spawnPlayer or easier createMarker "onMarkerHit" -- event getPlayerTeam outputChatBox else killPed or spawnPlayer Link to comment
prodigy285 Posted July 4, 2013 Author Share Posted July 4, 2013 i added it how does it work? Link to comment
prodigy285 Posted July 4, 2013 Author Share Posted July 4, 2013 http://prntscr.com/1dk3l0 Link to comment
AMARANT Posted July 4, 2013 Share Posted July 4, 2013 http://prntscr.com/1dk3l0 What is that? Paste here your code. Link to comment
iMr.3a[Z]eF Posted July 4, 2013 Share Posted July 4, 2013 Post it here with using the LUA syntax Link to comment
prodigy285 Posted July 4, 2013 Author Share Posted July 4, 2013 createMarker "onMarkerHit" -- event getPlayerTeam outputChatBox else killPed or spawnPlayer Link to comment
prodigy285 Posted July 4, 2013 Author Share Posted July 4, 2013 Im still new to this but was i suposed to edit that ^^^? Link to comment
AMARANT Posted July 4, 2013 Share Posted July 4, 2013 Unbelievable... You just copied the functions above. You don't have just paste these functions, you have to make a script using them! Link to comment
iMr.3a[Z]eF Posted July 4, 2013 Share Posted July 4, 2013 write the position where you want it for the team i mean write the position where the area's gate Link to comment
prodigy285 Posted July 4, 2013 Author Share Posted July 4, 2013 Ok so if you guys are suposed to be helping me how about breaking it down to basic to help me erase "get player team" and put the x position coordinates or leave it and type = what ever the x postion coordinate is? Link to comment
iMr.3a[Z]eF Posted July 4, 2013 Share Posted July 4, 2013 Ok so if you guys are suposed to be helping me how about breaking it down to basic to help me erase "get player team" and put the x position coordinates or leave it and type = what ever the x postion coordinate is? Without getPlayerTeam anyone can enter the place you want Link to comment
prodigy285 Posted July 4, 2013 Author Share Posted July 4, 2013 My question was just right the x coordinate next to it or type = first Link to comment
iMr.3a[Z]eF Posted July 4, 2013 Share Posted July 4, 2013 My question was just right the x coordinate next to it or type = first i really dont understand YA,,,, Link to comment
prodigy285 Posted July 4, 2013 Author Share Posted July 4, 2013 Ok explain everything for me please juste xplain all for it to work i need it to work at the doherty sf garage Link to comment
denny199 Posted July 4, 2013 Share Posted July 4, 2013 @6ArHxiMr'3a[Z]eF Please, speak better english. @prodigy285 Read the wiki. https://wiki.multitheftauto.com/wiki/CreateColRectangle And then change it with moveObject, and etc. Link to comment
prodigy285 Posted July 4, 2013 Author Share Posted July 4, 2013 @Denny if im not mistaken just edit the fy and fx and im all set? Link to comment
iMr.3a[Z]eF Posted July 4, 2013 Share Posted July 4, 2013 Ok explain everything for me please juste xplain all for it to work i need it to work at the doherty sf garage this explain everything local marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 0, 0, 170 ) addEventHandler( "onMarkerHit", function ( player ) local PlayerTeam = getPlayerTeam ( player ) local Team = getTeamFromName ( "staff" ) if playerTeam == Team then outputChatBox ( "* welcome Staff ", player, 255, 0, 0) else killPed(player) end end ) # Replace 1- x, y ,x == the position for the area Link to comment
prodigy285 Posted July 4, 2013 Author Share Posted July 4, 2013 Its just a freakin red cylinder :L Link to comment
iMr.3a[Z]eF Posted July 5, 2013 Share Posted July 5, 2013 Its just a freakin red cylinder :L So how do you want it then? Big. without alpha? createMarker Click the function and learn how can you edit my code. 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