Raised This Month: $ Target: $400
 0% 

[CSGO] Buy Riot Shields for comp/community


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sekac
Senior Member
Join Date: Nov 2016
Plugin ID:
6561
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow Players to Buy new Riot Shields
    Old 10-09-2021 , 16:10   Re: [CSGO] Buy Riot Shields for comp/community
    Reply With Quote #1

    Now the shield is purchasable in game. game_type and game_mode need to be 0. Also a hostage zone is required which can be spawned in at map start in any map.

    Code:
    stock void CreateHostageRescue()
    {
        int iEntity = -1;
        if((iEntity = FindEntityByClassname(iEntity, "func_hostage_rescue")) == -1) {
            int iHostageRescueEnt = CreateEntityByName("func_hostage_rescue");
            DispatchKeyValue(iHostageRescueEnt, "targetname", "fake_hostage_rescue");
            DispatchKeyValue(iHostageRescueEnt, "origin", "-3141 -5926 -5358");
            DispatchSpawn(iHostageRescueEnt);
        }
    }
    sekac is offline
    namleww
    Junior Member
    Join Date: Mar 2022
    Old 03-06-2022 , 11:56   Re: [CSGO] Buy Riot Shields for comp/community
    Reply With Quote #2

    Quote:
    Originally Posted by sekac View Post
    Now the shield is purchasable in game. game_type and game_mode need to be 0. Also a hostage zone is required which can be spawned in at map start in any map.

    Code:
    stock void CreateHostageRescue()
    {
        int iEntity = -1;
        if((iEntity = FindEntityByClassname(iEntity, "func_hostage_rescue")) == -1) {
            int iHostageRescueEnt = CreateEntityByName("func_hostage_rescue");
            DispatchKeyValue(iHostageRescueEnt, "targetname", "fake_hostage_rescue");
            DispatchKeyValue(iHostageRescueEnt, "origin", "-3141 -5926 -5358");
            DispatchSpawn(iHostageRescueEnt);
        }
    }
    Sorry I'm new to creating CS:GO server, can I ask how can I use the above code? I tried to add shield to the competitive server, map de_dust2 but I can't pick the shield up
    namleww 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 17:43.


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