AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   problem with team deathmatch mode (https://forums.alliedmods.net/showthread.php?t=132736)

CrazyChickenTest 07-18-2010 11:57

problem with team deathmatch mode
 
Hi
I try to write something like a team deathmatch mode. No rounds , and respawn 15s after dead. Respawn is easy to write but how can I disable round time?

drekes 07-18-2010 13:09

Re: problem with team deathmatch mode
 
roundtime: http://forums.alliedmods.net/showthr...infinite+round

respawn:
PHP Code:

#include <amxmodx>
#include <hamsandwich>

public plugin_init()
{
    
RegisterHam(Ham_Killed"player""FWD_Ham_Killed_Post"1);
    
register_clcmd("say /respawn""CMD_Respawn");
}

public 
FWD_Ham_Killed_Post(id)
{
    if(
is_user_connected(id))
        
set_task(15.0"TASK_Respawn"id);
}

public 
CMD_Respawn(id)
    
set_task(15.0"TASK_Respawn"id);

public 
TASK_Respawn(id)
{
    if(
is_user_connected(id))
        
ExecuteHamB(Ham_CS_RoundRespawnid);



CrazyChickenTest 07-19-2010 02:38

Re: problem with team deathmatch mode
 
thx


All times are GMT -4. The time now is 07:08.

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