Toffbrown Posted January 4, 2013 Share Posted January 4, 2013 the scripts im looking for are like /warp and you warp to them and only admin can warp but players use /call and you bring them ive looked every where for this anyhelp and the other script is in freeroam when you create a vehicle you spawn inside of it instead of pressing enter/f key ~Toff Link to comment
Perfect Posted January 4, 2013 Share Posted January 4, 2013 You can made that script by yourself. Try this (did'nt tested): function warpPlayer ( tplayer, cmd) if tplayer then local victim = getPlayerFromName ( tplayer ) if victim then local x, y, z = getElementPosition ( victim ) setElementPosition ( source, x, y, z ) else outputChatBox ( "Could not find player with name: "..tostring(tplayer), source, 255, 0, 0, true ) end end addCommandHandler ( "warp", warpPlayer ) function callPlayer ( tplayer, cmd) if tplayer then local victim = getPlayerFromName ( tplayer ) if victim then local x, y, z = getElementPosition ( source ) setElementPosition ( victim, x, y, z ) else outputChatBox ( "Could not find player with name: "..tostring(tplayer), source, 255, 0, 0, true ) end end addCommandHandler ( "call", warpPlayer ) Link to comment
Toffbrown Posted January 4, 2013 Author Share Posted January 4, 2013 how do i go about using this? Link to comment
Perfect Posted January 4, 2013 Share Posted January 4, 2013 something like this 1) copy that code and paste in wordpad/notepad and save as script.lua 2) then copy this code: and save as meta.xml 3) then put those files in folder and named folder anything you want. 4) put that folder in C:\Program Files\MTA San Andreas 1.3\server\mods\deathmatch\resources\[gameplay] and you've done Link to comment
Toffbrown Posted January 4, 2013 Author Share Posted January 4, 2013 im sorry but i tried that and i get nothing Link to comment
Castillo Posted January 4, 2013 Share Posted January 4, 2013 You can made that script by yourself.Try this (did'nt tested): function warpPlayer ( tplayer, cmd) if tplayer then local victim = getPlayerFromName ( tplayer ) if victim then local x, y, z = getElementPosition ( victim ) setElementPosition ( source, x, y, z ) else outputChatBox ( "Could not find player with name: "..tostring(tplayer), source, 255, 0, 0, true ) end end addCommandHandler ( "warp", warpPlayer ) function callPlayer ( tplayer, cmd) if tplayer then local victim = getPlayerFromName ( tplayer ) if victim then local x, y, z = getElementPosition ( source ) setElementPosition ( victim, x, y, z ) else outputChatBox ( "Could not find player with name: "..tostring(tplayer), source, 255, 0, 0, true ) end end addCommandHandler ( "call", warpPlayer ) That won't work. function warpPlayer ( tplayer, cmd, victim ) local victim = getPlayerFromName ( victim ) if ( victim ) then local x, y, z = getElementPosition ( tplayer ) setElementPosition ( victim, x, y, z ) else outputChatBox ( "Could not find player with name: ".. tostring ( victim ), source, 255, 0, 0, true ) end end addCommandHandler ( "warp", warpPlayer ) function callPlayer ( tplayer, cmd, victim ) local victim = getPlayerFromName ( victim ) if ( victim ) then local x, y, z = getElementPosition ( tplayer ) setElementPosition ( victim, x, y, z ) else outputChatBox ( "Could not find player with name: ".. tostring ( victim ), source, 255, 0, 0, true ) end end addCommandHandler ( "call", callPlayer ) Link to comment
Toffbrown Posted January 4, 2013 Author Share Posted January 4, 2013 thanks you SolidSnake14 i get an error where the person dissapers 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