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.");
}
}
__________________