AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSGO] VipSpawn (1.0.5, 9 September, 2017) (https://forums.alliedmods.net/showthread.php?t=301113)

KewaiiGamer 09-08-2017 14:30

[CSGO] VipSpawn (1.0.5, 9 September, 2017)
 
4 Attachment(s)
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/

ESK0 09-08-2017 14:52

Re: [CSGO] VipSpawn (1.1.0, 8 September, 2017)
 
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;
}


Blue Malgeran 03-29-2018 02:31

Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
 
1 Attachment(s)
Added Hebrew translation.
Good luck!

rEDGUY 01-16-2019 03:07

Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
 
Cant download, the compiling dosent work

rEDGUY 01-16-2019 05:30

Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
 
/groups/sourcemod/upload_tmp/text3ufJoD.sp(2) : fatal error 182: cannot read from file: "csgocolors"

Compilation aborted.
1 Error.

freak.exe_uLow 01-16-2019 05:55

Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
 
Quote:

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

Compilation aborted.
1 Error.

https://github.com/KewaiiGamer/KewVIP

starcs 01-17-2019 12:30

Re: [CSGO] VipSpawn (1.1.0, 8 September, 2017)
 
Quote:

Originally Posted by ESK0 (Post 2547553)
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?

Cruze 01-18-2019 02:27

Re: [CSGO] VipSpawn (1.1.0, 8 September, 2017)
 
Quote:

Originally Posted by starcs (Post 2635175)
What is the flag for vips?

ADMFLAG_RESERVATION i.e. "a"

rEDGUY 01-24-2019 02:40

Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
 
It isnt working, failing to compile. Even the "fixed" one

Cruze 01-24-2019 07:30

Re: [CSGO] VipSpawn (1.0.5, 9 September, 2017)
 
1 Attachment(s)
Quote:

Originally Posted by rEDGUY (Post 2636341)
It isnt working, failing to compile. Even the "fixed" one

nope


All times are GMT -4. The time now is 07:12.

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