ForcePlayerClassSelection
#1

pawn Код:
public round()
{
    new string[128];
    RoundStarted = 0;
    KillTimer(roundd);
    roundd = SetTimer("round", 600000, false); // Set a timer of 1000 miliseconds (1 second)
    SetTimer("startround", 30000, false); // Set a timer of 1000 miliseconds (1 second)
    format( string, sizeof(string), "New round started. wait 30 Seconds untill respawn!");
    GameTextForAll( string, 5000, 3 );
    foreach(Player, i)
    {
        if(IsPlayerConnected(i) && PlayerInfo[i][pTeam] == 0)
        {
        TogglePlayerSpectating(i, 0);
        IsDead[i] = 0;
        KillCount[i] = 0;
        ForceClassSelection(i);
        TogglePlayerSpectating(i, 0);
        }
    }
    return 0;
}
So, Ehmm.
I've added this, It will happen when an admin will type /round..
Or.. when the current round is ended.
Or when the bomb will explode :P

Well..

When i type /round ingame.
It's says, ''Server Closed Connection''.
I dont know why, can anybody help me?
I diddnt even scripted any ''ban();'' in my gamemode, or filterscripts, so it's kinda weird.
Reply


Messages In This Thread
ForcePlayerClassSelection - by faff - 05.04.2013, 12:07
Re: ForcePlayerClassSelection - by faff - 05.04.2013, 12:12

Forum Jump:


Users browsing this thread: 1 Guest(s)