Advertisement
Guest User

cliport.lua

a guest
Jun 16th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onSay(cid, words, param)
  2.  
  3.     local player = Player(cid) --Get the player
  4.  
  5.     if player:getAccountType() < ACCOUNT_TYPE_GAMEMASTER then
  6.         return false
  7.  
  8.     else
  9.         CLIPORT = not CLIPORT      --Set canMove to the opposite bool
  10.        
  11.         if(not CLIPORT) then
  12.             player:sendCancelMessage("Mapclick teleport is now OFF!")
  13.  
  14.         else
  15.             player:sendCancelMessage("Mapclick teleport is now ON!")
  16.  
  17.         end
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement