Jump to content

Im looking for two scripts


Toffbrown

Recommended Posts

Posted

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

nJgL8wr.png

I DON'T HAVE HATERS, I JUST HAVE FANS IN DENIAL

Posted

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 ) 

Multi Theft Auto Player since middle of 2011.

Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.

Posted

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

Multi Theft Auto Player since middle of 2011.

Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.

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

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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