Raised This Month: $51 Target: $400
 12% 

[ANY] Spin my screen [v.1.1] - 5/26/2016


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Plugin ID:
5206
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    8 
    Plugin Description:
    Spins a players' screen.
    Old 05-25-2016 , 19:55   [ANY] Spin my screen [v.1.1] - 5/26/2016
    Reply With Quote #1

    [ANY] Spin my screen v.1.1


    Description:
    Quote:
    Simple plugin that rotates a players' screen by x,y or z axis.
    Should work for any source game but only tested on TF2 and CS:GO.
    Dependency:
    Quote:
    - Sourcemod 1.7+
    - Metamod 1.10+
    Installation:
    Quote:
    1. Drag spin.cfg to cfg/sourcemod folder and modify cvar values
    2. Drag spin.smx to addons/sourcemod/plugin folder
    ConVars:
    Quote:
    sm_spin_enabled - Enable/Disables plugin
    sm_spin_speed - How fast to spin player per 0.1 second. Full spin is 360 degree rotation
    Commands:
    Quote:
    sm_spin <client> <rotations> <optional: axis> - Spins a player
    client - Name of player
    rotations - How many full 360 spins (1 spin = 360 degree rotation)
    axis - x,y or z (If left blank/invalid, will default to z axis)

    sm_stopspinning <client> - Stop spinning a player (If you start spinning someone 1000 times, you can use this to stop it)
    client - Name of player
    Version Log:
    Quote:
    1.1 -
    - Fixed plugin crashing on cs:go servers
    - To be more universal, color chat removed and morecolor.inc no longer needed
    - Fixed sm_spin_enabled not properly disabling plugin
    - When spinning ends, rotation angles are reset back to 0.0 instead of incremented

    1.0 - Release
    Github source: here
    Attached Files
    File Type: cfg spin.cfg (272 Bytes, 458 views)
    File Type: sp Get Plugin or Get Source (spin.sp - 1110 views - 6.8 KB)
    File Type: smx spin.smx (8.3 KB, 527 views)
    __________________

    Last edited by Chaosxk; 05-26-2016 at 15:41.
    Chaosxk is offline
    dz.
    Junior Member
    Join Date: May 2016
    Old 05-25-2016 , 21:33   Re: [ANY] Spin my screen [v.1.0] - 5/25/2016
    Reply With Quote #2

    Tested on CS:GO: not working. the server just shuts down after the command:
    Quote:
    WARNING: Connection problem Auto-disconnect in: 00:XX

    Last edited by dz.; 05-25-2016 at 21:38.
    dz. is offline
    Chaosxk
    Veteran Member
    Join Date: Aug 2010
    Location: Westeros
    Old 05-25-2016 , 22:46   Re: [ANY] Spin my screen [v.1.0] - 5/25/2016
    Reply With Quote #3

    Quote:
    Originally Posted by dz. View Post
    Tested on CS:GO: not working. the server just shuts down after the command:
    What does your server/error logs say?
    __________________
    Chaosxk is offline
    341464
    Senior Member
    Join Date: Dec 2010
    Location: GetClientEyePosition
    Old 05-25-2016 , 23:02   Re: [ANY] Spin my screen [v.1.0] - 5/25/2016
    Reply With Quote #4

    I don't think you need a client check with CReplyToCommand. The include already does that for you. So just no need for
    PHP Code:

            
    if(!client
                
    ReplyToCommand(client"[SM] Usage: sm_spin <client> <rotations> <optional: x,y,z>."); 
    __________________
    341464 is offline
    Send a message via Skype™ to 341464
    Chaosxk
    Veteran Member
    Join Date: Aug 2010
    Location: Westeros
    Old 05-25-2016 , 23:36   Re: [ANY] Spin my screen [v.1.0] - 5/25/2016
    Reply With Quote #5

    Quote:
    Originally Posted by 341464 View Post
    I don't think you need a client check with CReplyToCommand. The include already does that for you. So just no need for
    PHP Code:

            
    if(!client
                
    ReplyToCommand(client"[SM] Usage: sm_spin <client> <rotations> <optional: x,y,z>."); 
    I do the check so it doesn't print the color chat but instead prints a normal chat back to the server if the command was executed from the server console.
    __________________

    Last edited by Chaosxk; 05-25-2016 at 23:36.
    Chaosxk is offline
    dz.
    Junior Member
    Join Date: May 2016
    Old 05-26-2016 , 01:10   Re: [ANY] Spin my screen [v.1.0] - 5/25/2016
    Reply With Quote #6

    Quote:
    Originally Posted by Chaosxk View Post
    What does your server/error logs say?
    Sorry for the long reply. Actually, I have no error logs. Noticed that the server works okay. It seems the connection to the server is dropped when entering the command.
    dz. is offline
    Chaosxk
    Veteran Member
    Join Date: Aug 2010
    Location: Westeros
    Old 05-26-2016 , 15:42   Re: [ANY] Spin my screen [v.1.1] - 5/26/2016
    Reply With Quote #7

    Here is 1.1 which fixes the crash in CS:GO

    Code:
    1.1 - 
    - Fixed plugin crashing on cs:go servers
    - To be more universal, color chat removed and morecolor.inc no longer needed
    - Fixed sm_spin_enabled not properly disabling plugin
    - When spinning ends, rotation angles are reset back to 0.0 instead of incremented
    __________________
    Chaosxk is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 08:20.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode