View Single Post
Kumlaserver
Junior Member
Join Date: Jul 2011
Old 05-08-2012 , 12:53   Re: First plugin simple need help :)
Reply With Quote #10

Quote:
Originally Posted by berni View Post
You would have to kill the timer at round end, or otherwise the timer would go into the next round.

And please use { } brackets for every block, not using them is a bad habbit and makes the code unreadable and becomes a problem when you want to extend the block with more lines later.

Code:
public Action:kill(Handle:timer)
{
    for( new iClient = 1; iClient <= MaxClients; iClient++ ) {
        if( IsClientInGame( iClient ) )
        {
            ForcePlayerSuicide(iClient);
        }
    }
}
Okey but when i try to add 'return Plugin_Stop' and 'return Plugin_Continue'
it wont let me compile it..
Kumlaserver is offline