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

[CSGO] VipSpawn (1.0.5, 9 September, 2017)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
KewaiiGamer
Junior Member
Join Date: Aug 2017
Plugin ID:
5818
Plugin Version:
1.0.5
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow VIPs to use vipspawn
    Old 09-08-2017 , 14:30   [CSGO] VipSpawn (1.0.5, 9 September, 2017)
    Reply With Quote #1

    Features
    • Allow players with VIP Status to respawn themselves mid-match.
    • Convar to set if all players should be able to use vipspawn (Not yet Available)
    • Players can vipspawn even if they joined mid-match as long as they have never respawned that round.
    • Uses Kewaii Library convars to check if player is VIP
    • Possible to choose between vip, mod and admin (Not yet Available)
    • A lot of customizable cvars. Check cfg/sourcemod/kewaii_lib.cfg!
    • Translated to Portuguese and English. If you wish to translate the plugin to any other language you can do so by yourself however if you want to share it with me you are free to PM it to me and I will make sure you will be credited for it ;)
    Instructions
    • Download the kewaii_vipspawn.sp file and drop it into addons/sourcemod/scripting/ (Optional)
    • Download the kewaii_vipspawn.smx file and drop it into addons/sourcemod/plugins/
    • Download the kewaii_vipspawn.phrases.txt file and drop it into addons/sourcemod/translations/
    Attached Files
    File Type: sp Get Plugin or Get Source (kewaii_vipspawn.sp - 719 views - 2.2 KB)
    File Type: txt kewaii_vipspawn.phrases.txt (533 Bytes, 561 views)

    Last edited by KewaiiGamer; 09-09-2017 at 13:48. Reason: Added dependency
    KewaiiGamer is offline
    ESK0
    BANNED
    Join Date: May 2014
    Location: Czech Republic
    Old 09-08-2017 , 14:52   Re: [CSGO] VipSpawn (1.1.0, 8 September, 2017)
    Reply With Quote #2

    Hello,

    Your dependency does not even make sense.. but don't worry I fixed your plugin for you

    Code:
    #include <sourcemod>
    #include <multicolors>
    #include <cstrike>
    
    #pragma semicolon 1
    #pragma newdecls required
    
    #define PLUGIN_NAME "VipSpawn"
    #define PLUGIN_AUTHOR "Kewaii"
    #define PLUGIN_DESCRIPTION "Advanced Respawn for Vip players"
    #define PLUGIN_VERSION "1.0.4"
    #define PLUGIN_TAG "{pink}[VipSpawn by Kewaii]{green}"
    
    bool g_bRevived[MAXPLAYERS+1] = {false, ...};
    
    public Plugin myinfo =
    {
      name = PLUGIN_NAME,
      author = PLUGIN_AUTHOR,
      description = PLUGIN_DESCRIPTION,
      version = PLUGIN_VERSION,
      url = "http://kewaiigamer.info"
    };
    
    public void OnPluginStart()
    {
      LoadTranslations("kewaii_vipspawn.phrases");
      RegConsoleCmd("sm_vipspawn", Command_VipSpawn);
      HookEvent("round_start", OnRoundStart);
    }
    
    public Action OnRoundStart(Event event, const char[] name, bool dontBroadcast)
    {
      for (int i = 1; i <= MaxClients; i++)
      {
        g_bRevived[i] = false;
      }
    }
    stock bool IsClientVIP(int client)
    {
      if(CheckCommandAccess(client, "", ADMFLAG_RESERVATION, true))
      {
        return true;
      }
      return false;
    }
    public Action Command_VipSpawn(int client, int args)
    {
      if(IsClientInGame(client))
      {
        if(IsClientVIP(client))
        {
          if(IsPlayerAlive(client))
          {
            CPrintToChat(client, "%s %t", PLUGIN_TAG, "DeadPlayer");
          }
          else
          {
            if(g_bRevived[client])
            {
              CPrintToChat(client, "%s %t", PLUGIN_TAG, "PlayerAlreadyUsedVipspawn");
            }
            else
            {
              CS_RespawnPlayer(client);
              char clientName[MAX_NAME_LENGTH];
              GetClientName(client, clientName, sizeof(clientName));
              CPrintToChatAll("%s %t", PLUGIN_TAG, "PlayerUsedVipspawn", clientName);
              g_bRevived[client] = true;
            }
          }
        }
        else
        {
          CPrintToChat(client, "%s %t", PLUGIN_TAG, "PlayerNotVip");
        }
      }
      else
      {
        PrintToServer("%t","Command is in-game only");
      }
      return Plugin_Handled;
    }

    Last edited by ESK0; 09-08-2017 at 14:54.
    ESK0 is offline
    Blue Malgeran
    Junior Member
    Join Date: Apr 2017
    Location: Israel
    Old 03-29-2018 , 02:31   Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
    Reply With Quote #3

    Added Hebrew translation.
    Good luck!
    Attached Files
    File Type: txt kewaii_vipspawn.phrases.txt (759 Bytes, 385 views)
    __________________
    Blue Malgeran is offline
    rEDGUY
    Junior Member
    Join Date: Dec 2018
    Old 01-16-2019 , 03:07   Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
    Reply With Quote #4

    Cant download, the compiling dosent work
    rEDGUY is offline
    rEDGUY
    Junior Member
    Join Date: Dec 2018
    Old 01-16-2019 , 05:30   Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
    Reply With Quote #5

    /groups/sourcemod/upload_tmp/text3ufJoD.sp(2) : fatal error 182: cannot read from file: "csgocolors"

    Compilation aborted.
    1 Error.
    rEDGUY is offline
    freak.exe_uLow
    AlliedModders Donor
    Join Date: Jul 2012
    Location: Germany
    Old 01-16-2019 , 05:55   Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
    Reply With Quote #6

    Quote:
    Originally Posted by rEDGUY View Post
    /groups/sourcemod/upload_tmp/text3ufJoD.sp(2) : fatal error 182: cannot read from file: "csgocolors"

    Compilation aborted.
    1 Error.
    https://github.com/KewaiiGamer/KewVIP
    freak.exe_uLow is offline
    starcs
    Member
    Join Date: Nov 2018
    Old 01-17-2019 , 12:30   Re: [CSGO] VipSpawn (1.1.0, 8 September, 2017)
    Reply With Quote #7

    Quote:
    Originally Posted by ESK0 View Post
    Hello,

    Your dependency does not even make sense.. but don't worry I fixed your plugin for you

    Code:
    #include <sourcemod>
    #include <multicolors>
    #include <cstrike>
    
    #pragma semicolon 1
    #pragma newdecls required
    
    #define PLUGIN_NAME "VipSpawn"
    #define PLUGIN_AUTHOR "Kewaii"
    #define PLUGIN_DESCRIPTION "Advanced Respawn for Vip players"
    #define PLUGIN_VERSION "1.0.4"
    #define PLUGIN_TAG "{pink}[VipSpawn by Kewaii]{green}"
    
    bool g_bRevived[MAXPLAYERS+1] = {false, ...};
    
    public Plugin myinfo =
    {
      name = PLUGIN_NAME,
      author = PLUGIN_AUTHOR,
      description = PLUGIN_DESCRIPTION,
      version = PLUGIN_VERSION,
      url = "http://kewaiigamer.info"
    };
    
    public void OnPluginStart()
    {
      LoadTranslations("kewaii_vipspawn.phrases");
      RegConsoleCmd("sm_vipspawn", Command_VipSpawn);
      HookEvent("round_start", OnRoundStart);
    }
    
    public Action OnRoundStart(Event event, const char[] name, bool dontBroadcast)
    {
      for (int i = 1; i <= MaxClients; i++)
      {
        g_bRevived[i] = false;
      }
    }
    stock bool IsClientVIP(int client)
    {
      if(CheckCommandAccess(client, "", ADMFLAG_RESERVATION, true))
      {
        return true;
      }
      return false;
    }
    public Action Command_VipSpawn(int client, int args)
    {
      if(IsClientInGame(client))
      {
        if(IsClientVIP(client))
        {
          if(IsPlayerAlive(client))
          {
            CPrintToChat(client, "%s %t", PLUGIN_TAG, "DeadPlayer");
          }
          else
          {
            if(g_bRevived[client])
            {
              CPrintToChat(client, "%s %t", PLUGIN_TAG, "PlayerAlreadyUsedVipspawn");
            }
            else
            {
              CS_RespawnPlayer(client);
              char clientName[MAX_NAME_LENGTH];
              GetClientName(client, clientName, sizeof(clientName));
              CPrintToChatAll("%s %t", PLUGIN_TAG, "PlayerUsedVipspawn", clientName);
              g_bRevived[client] = true;
            }
          }
        }
        else
        {
          CPrintToChat(client, "%s %t", PLUGIN_TAG, "PlayerNotVip");
        }
      }
      else
      {
        PrintToServer("%t","Command is in-game only");
      }
      return Plugin_Handled;
    }
    What is the flag for vips?
    starcs is offline
    Cruze
    Veteran Member
    Join Date: May 2017
    Old 01-18-2019 , 02:27   Re: [CSGO] VipSpawn (1.1.0, 8 September, 2017)
    Reply With Quote #8

    Quote:
    Originally Posted by starcs View Post
    What is the flag for vips?
    ADMFLAG_RESERVATION i.e. "a"
    __________________
    Taking paid private requests! Contact me
    Cruze is offline
    rEDGUY
    Junior Member
    Join Date: Dec 2018
    Old 01-24-2019 , 02:40   Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
    Reply With Quote #9

    It isnt working, failing to compile. Even the "fixed" one

    Last edited by rEDGUY; 01-24-2019 at 02:41.
    rEDGUY is offline
    Cruze
    Veteran Member
    Join Date: May 2017
    Old 01-24-2019 , 07:30   Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
    Reply With Quote #10

    Quote:
    Originally Posted by rEDGUY View Post
    It isnt working, failing to compile. Even the "fixed" one
    nope
    Attached Files
    File Type: sp Get Plugin or Get Source (VIPSPAWN.sp - 223 views - 1.9 KB)
    __________________
    Taking paid private requests! Contact me
    Cruze is offline
    Reply


    Thread Tools
    Display Modes

    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 07:36.


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