AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How do i disable " respawn " (https://forums.alliedmods.net/showthread.php?t=28735)

2wicked 05-21-2006 12:48

How do i disable " respawn "
 
I own a deathmatch server and i need help how do i disable the command
" respawn "

Greenberet 05-21-2006 13:51

try this

CVAR amx_respawn <0/1> 0 = block respawn 1 = respawning allowed

Code:
#include <amxmodx> new CVAR_Respawn; public plugin_init() {         register_plugin( "Respawn blocker", "1.0", "Greenberet" );         CVAR_Respawn = register_cvar( "amx_respawn", "1" );         register_clcmd( "respawn", "cmdRespawn" ); } public cmdRespawn( Client ) {         if( get_pcvar_num( CVAR_Respawn ) )                 return PLUGIN_CONTINUE;         return PLUGIN_HANDLED; }


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

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