AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   30s secure time (https://forums.alliedmods.net/showthread.php?t=159211)

johanek 06-14-2011 05:14

30s secure time
 
Code:

public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
       
        register_clcmd("say rr","restart",0,"restart round");
}

public restart(id) {
        server_cmd("sv_restartround 1;");
}

Hi, how to do so a user can use the command "rr say" but after 30 seconds as he joined to the server? Thx

Exolent[jNr] 06-14-2011 05:30

Re: 30s secure time
 
Code:

public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
       
        register_clcmd("say rr","restart",0,"restart round");
}

public restart(id) {
        if(get_user_time(id) > 30) {
                server_cmd("sv_restartround 1;");
        }
}


johanek 06-14-2011 06:03

Re: 30s secure time
 
Quote:

Originally Posted by Exolent[jNr] (Post 1487900)
Code:

public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
       
        register_clcmd("say rr","restart",0,"restart round");
}

public restart(id) {
        if(get_user_time(id) > 30) {
                server_cmd("sv_restartround 1;");
        }
}


thx


All times are GMT -4. The time now is 23:29.

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