Jump to content

Im looking for two scripts


Toffbrown

Recommended Posts

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

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

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

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