Jump to content

The big CTRL+V topic.


Aeron

Recommended Posts

function blockPM(msg,r)

if (getPlayerName® == "Bob") then -- If they sent a PM to "Bob"

cancelEvent() -- Then cancel it

outputChatBox("Bob is not accepting PM's at this time.",source,255,0,0) -- And output it was cancelled.

end

end

addEventHandler("onPlayerPrivateMessage",getRootElement(),blockPM)

dont ask :P
Link to comment
  • Replies 658
  • Created
  • Last Reply

Top Posters In This Topic

function Superman.onJump(key, keyState)

local self = Superman

local task = getPlayerSimplestTask(localPlayer)

if not isPlayerFlying(localPlayer) then

if task == "TASK_SIMPLE_IN_AIR" then

setElementVelocity(localPlayer, 0, 0, TAKEOFF_VELOCITY)

setTimer(Superman.startFlight, 100, 1)

end

end

end

Well was making superman adminspawned only and i copied that to move it to another file....

Link to comment
'Activity module 
Sub Process_Globals 
    'These global variables will be declared once when the application starts. 
    'These variables can be accessed from all modules. 
  
End Sub 
  
Sub Globals 
    'These global variables will be redeclared each time the activity is created. 
    'These variables can only be accessed from this module. 
  
End Sub 
  
Sub Activity_Create(FirstTime As Boolean) 
    Activity.LoadLayout("MainMenu") 
End Sub 
  
Sub Activity_Resume 
  
End Sub 
  
Sub Activity_Pause (UserClosed As Boolean) 
  
End Sub 
  
  
  
Sub Button1_Click 
    Msgbox("Hello World", "My name is Kimmis") 
End Sub 

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