<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[GSC for custom games]]></title><description><![CDATA[<p dir="auto">so I wanted to try out these gsc's one that i got off github and one i made</p>
<p dir="auto">heres the one I made it's a slide for trickshotting and some reason i have to do the exec command in plutonium and it still doesnt work i want to be able to do it kinda like dojahs ts server.<br />
if this doesnt look like it would work could someone please send me the correct script and id also like to implement it into  vanityts.gsc if possible</p>
<pre><code>main()
{
    level thread onPlayerConnect();
}

onPlayerConnect()
{
    for(;;)
    {
        level waittill("connected", player);
        player thread monitorButtonPress();
    }
}

monitorButtonPress()
{
    self endon("disconnect");

    for(;;)
    {
        // Wait until both 'B' (button_b) and 'Left' on the D-pad (dpad_left) are pressed
        self waittill("button_pressed", "+stance"); // 'B' button is typically the 'stance' button
        self waittill("button_pressed", "dpad_left");

        // Call the slide spawn function
        self thread spawnSlide();

        // Add a delay to avoid multiple rapid spawns
        wait 0.5;
    }
}

spawnSlide()
{
    // Spawn the slide at the player's current location
    slide = spawn("script_model", self.origin);
    slide setModel("com_plasticcase_friendly"); // Placeholder model; change to any desired model
    slide.angles = self.angles; // Align with the player's direction
    
    // Apply custom properties to the slide if needed
    slide.knifeTrigger = true;
    
    // Optional: Store the slide for future reference if needed
    self.slides = self.slides + [slide];
    
    self iprintlnBold("^2Slide spawned!");
}
</code></pre>
<p dir="auto">also heres a screenshot of where i have it<br />
<img src="/assets/uploads/files/1726613796458-3f3c23f3-7937-426a-85e7-21289c8d1fd6-image.png" alt="3f3c23f3-7937-426a-85e7-21289c8d1fd6-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.plutonium.pw/topic/38125/gsc-for-custom-games</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 18:32:43 GMT</lastBuildDate><atom:link href="https://forum.plutonium.pw/topic/38125.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Sep 2024 23:06:59 GMT</pubDate><ttl>60</ttl></channel></rss>