AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   stop! clanware (https://forums.alliedmods.net/showthread.php?t=120965)

molnasek 03-10-2010 03:02

stop! clanware
 
Hallo, i have my cw/tg plugin, but it not full... I need /stop.
i have now this:
Code:

public plugin_init() {
        register_clcmd("say /stop", "cmd_stop", 0, "- stop the match")
}
public cmd_stop(id) {
        if (match_inprogress == 1) {
                all_msg("Zastavuji zapas.")
                match_inprogress = 0
                set_task(3.0, "restart_round", 0, "1", 1)
                set_task(6.0, "all_msg", 0, "Zapas byl zrusen", 13)
        } else {
                client_print(id, print_chat, "Wickedside.cz[molny]: Momentalne je hra zastavena, pouzij /start")
        }

        return PLUGIN_HANDLED
}

THIS IS BAD!


but this is bad!, i need /stop when game was stoped, here is restart round....
how?

One 03-10-2010 03:07

Re: stop! clanware
 
huh?
and in English & right Forum?

molnasek 03-10-2010 03:14

Re: stop! clanware
 
omg, i need when i write /stop, then games was stoped (pause). no restarted

worldspawn 03-10-2010 08:51

Re: stop! clanware
 
amx_pause


All times are GMT -4. The time now is 19:49.

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