Guest User

Untitled

a guest
Apr 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. function onPlayerCommand( player, command, text )
  2. {
  3. if ( cmd == "shinar" )
  4. {
  5. local status = player.ShootInAir;
  6. if ( !text ) PrivMessage( [Error] The corect use: /c shootinair <off/on>", player );
  7. else if ( text == "off" )
  8. {
  9. if ( status == true ) PrivMessage( "[Error] You already have Shot In Air Mod turned off!", player );
  10. else
  11. {
  12. ::PrivMessage( "Setting Shoot In Air Mod, To: Off", player );
  13. player.ShootInAir = true;
  14. }
  15. }
  16. else if ( text == "on" )
  17. {
  18. if ( status == false ) PrivMessage( "[Error] You already have Shot In Air Mod turned on!", player );
  19. else
  20. {
  21. ::PrivMessage( "Setting Shoot In Air Mod, To: On", player );
  22. player.ShootInAir = false;
  23. }
  24. }
  25. else PrivMessage( "[Error] The correct use: /c shootinair <on/off>", player );
  26. }
  27. }
Add Comment
Please, Sign In to add comment