Raised This Month: $ Target: $400
 0% 

[TF2] Activate on spawn thing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
StormishJustice
Member
Join Date: May 2015
Location: In a mysterious place.
Old 03-26-2016 , 10:43   [TF2] Activate on spawn thing
Reply With Quote #1

I was doing something in Red2Robotv2 and thought of an idea to enable giant (or small) forever until the player presses the command to revert back, problem is, i want for example the giant command to activate and notify the player that you need to respawn to be a giant (or small if was a giant), i would use IsPlayerAlive, but that will activate if the player is alive and not when the player respawns.

anyone has an idea how this is done? if so, then thanks in advance.

here's the code if you guys are asking.
Code:
public Action Command_Giant(int client, int args)
{
    g_bWantsToBeGiant[client] = true;
    
    if (GetClientTeam(client) ==3 && !g_bIsGiantRobot[client] && g_bWantsToBeGiant[client])
    {
        ReplyToCommand(client, "[Red2Robot] You will be a giant once you respawn.")
    }
    if (g_bIsGiantRobot[client])
    {
        ReplyToCommand(client, "[Red2Robot] You can't be a Giant Robot again because you already are.")
    }
    else if (GetClientTeam(client) ==3 && !g_bIsGiantRobot[client])
    {
        GiantRobot(client);
        ReplyToCommand(client, "[Red2Robot] You are now a Giant Robot!");
        ShowActivity2(client, "[Red2Robot] ", "%N is now a Giant Robot!", client);
    }
    else
    {
        ReplyToCommand(client, "[Red2Robot] You need to be in the BLU/Robots team in order to turn into a Giant Robot.");
    }
}
__________________

Last edited by StormishJustice; 03-26-2016 at 10:44.
StormishJustice is offline
Send a message via AIM to StormishJustice Send a message via Yahoo to StormishJustice Send a message via Skype™ to StormishJustice
 



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 21:11.


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