Jump to content

Script Needed!!


x96

Recommended Posts

Salam, muje pata hai ke koi muje code nahi de ga, lekin phir bhi meu ye poochna chahta hoon ke koi mere liye aise script bana sakta hai, ke jab ham type kareu /base to ham teleport hon is pos par -2334.498046875, 1544.8419189453, 17.5703125 , aur chat meu likha aai! Player was teleported to drift island! Please madad!!

Link to comment

script.lua

commandName = "base" 
  
addCommandHandler(commandName, 
 function(t) 
  setElementPosition(t, -2334.498046875, 1544.8419189453, 17.5703125) 
  outputChatBox("..getPlayerName(t).. " was teleported to drift land!", root, 0, 255, 0) 
 end 
) 
  
 

meta.xml

     "Bilal" type="script" name="spawn" description="Script For Spawn" /> 
     

Test ke liye time nahi tha, lekin work karay gi inshallah..

Edited by Guest
Link to comment
Works fine, lekin meu chahta hoon ke sab players ko ye message na dikhai de, sirf us ko dikhai de jis ne /base kiya ho ga.
commandName = "base" 
  
addCommandHandler(commandName, 
 function(t) 
  setElementPosition(t, -2334.498046875, 1544.8419189453, 17.5703125) 
  outputChatBox("You was teleported to drift island!", t, 0, 255, 0) 
 end 
) 
  

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