KAKAN

Simple healme

Dec 30th, 2016
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.40 KB | None | 0 0
  1. function onPlayerCommand( invoker, command, arguments ){
  2.     if( command == "healme" ) //You don't need to put a '/' here.
  3.     {
  4.         if( invoker.Health == 100 ) PrivMessage( invoker, "You already have 100 HP." );
  5.         else {
  6.             invoker.Health = 100;
  7.             MessagePlayer( "INFO: You've 100 HP now.", invoker );
  8.             //This are the 2 functions to send a personal Message( PM ) to a player from the server.
  9.         }
  10.     }
  11. }
Add Comment
Please, Sign In to add comment