Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onPlayerCommand( player, command, text )
- {
- if ( cmd == "shinar" )
- {
- local status = player.ShootInAir;
- if ( !text ) PrivMessage( [Error] The corect use: /c shootinair <off/on>", player );
- else if ( text == "off" )
- {
- if ( status == true ) PrivMessage( "[Error] You already have Shot In Air Mod turned off!", player );
- else
- {
- ::PrivMessage( "Setting Shoot In Air Mod, To: Off", player );
- player.ShootInAir = true;
- }
- }
- else if ( text == "on" )
- {
- if ( status == false ) PrivMessage( "[Error] You already have Shot In Air Mod turned on!", player );
- else
- {
- ::PrivMessage( "Setting Shoot In Air Mod, To: On", player );
- player.ShootInAir = false;
- }
- }
- else PrivMessage( "[Error] The correct use: /c shootinair <on/off>", player );
- }
- }
Add Comment
Please, Sign In to add comment