BTW, żeby respiło od razu po spadnięciu, bez żadnego lipnego info.
Użytkownik Julia edytował ten post 29.07.2011 21:21
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Napisano 29.07.2011 20:55
Użytkownik Julia edytował ten post 29.07.2011 21:21
Napisano 30.07.2011 21:56
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "Noob respawner"
#define AUTHOR "Dawedov"
#define VERSION "1.0"
#define TASK_COUNTER 453
new gCvarTime;
new gTimeCounter;
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )
gCvarTime = register_cvar( "amx_noobresp_time", "10" );
register_event( "HLTV", "ResetCounter", "a", "1=0", "2=0" );
register_event( "DeathMsg", "DeathMessage_Hook", "a" )
register_logevent( "StartCount", 2, "1=Round_Start" );
}
public ResetCounter()
gTimeCounter = 0;
public StartCount()
set_task( float( get_pcvar_num( gCvarTime ) ), "addToCounter", TASK_COUNTER );
public addToCounter()
{
gTimeCounter++;
if( gTimeCounter >= get_pcvar_num( gCvarTime ) && task_exists( TASK_COUNTER ) )
remove_task( TASK_COUNTER );
}
public DeathMessage_Hook()
{
new id = read_data( 2 );
if( gTimeCounter <= get_pcvar_num( gCvarTime ) && get_user_team( id ) != 3 )
ExecuteHamB( Ham_CS_RoundRespawn, id )
}
Użytkownik Dawedov edytował ten post 30.07.2011 22:01
Nie pomagam na PW, tylko na forum.
Napisano 31.07.2011 21:25
Napisano 31.07.2011 21:55
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "Noob respawner"
#define AUTHOR "Dawedov"
#define VERSION "1.0"
#define TASK_COUNTER 453
#define TASK_WSKRZES 593
new gCvarTime;
new gTimeCounter;
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )
gCvarTime = register_cvar( "amx_noobresp_time", "10" );
register_event( "HLTV", "ResetCounter", "a", "1=0", "2=0" );
register_event( "DeathMsg", "DeathMessage_Hook", "ade" )
register_logevent( "StartCount", 2, "1=Round_Start" );
}
public ResetCounter()
gTimeCounter = 0;
public StartCount()
set_task( float( get_pcvar_num( gCvarTime ) ), "addToCounter", TASK_COUNTER );
public addToCounter()
{
gTimeCounter++;
if( gTimeCounter >= get_pcvar_num( gCvarTime ) && task_exists( TASK_COUNTER ) )
remove_task( TASK_COUNTER );
}
public DeathMessage_Hook()
{
new id = read_data(2);
if( gTimeCounter <= get_pcvar_num( gCvarTime ) && get_user_team( id ) != 3 )
set_task( 0.1, "taskWskrzes", id+TASK_WSKRZES );
return PLUGIN_HANDLED;
}
public taskWskrzes( taskid )
{
new id = taskid - TASK_WSKRZES;
ExecuteHamB( Ham_CS_RoundRespawn, id );
}
Użytkownik Dawedov edytował ten post 06.08.2011 16:51
Nie pomagam na PW, tylko na forum.
Napisano 04.08.2011 17:34
Użytkownik Julia edytował ten post 04.08.2011 17:36
Napisano 04.08.2011 18:26
#include <amxmodx> #include <hamsandwich> #define PLUGIN "Noob respawner" #define AUTHOR "Dawedov&R3X" #define VERSION "1.0" #define TASK_WSKRZES 593 new gCvarTime; new Float:gfTime; public plugin_init() { register_plugin( PLUGIN, VERSION, AUTHOR ) gCvarTime = register_cvar( "amx_noobresp_time", "10" ); register_event( "DeathMsg", "DeathMessage_Hook", "ade" ) register_logevent( "StartCount", 2, "1=Round_Start" ); } public StartCount(){ gfTime = get_gametime(); gfTime += get_pcvar_float( gCvarTime ); } public DeathMessage_Hook() { new id = read_data(2); new Float:fNow = get_gametime(); if( fNow < gfTime && get_user_team( id ) != 3 ) set_task( 0.1, "taskWskrzes", id+TASK_WSKRZES ); return PLUGIN_HANDLED; } public taskWskrzes( taskid ) { new id = taskid - TASK_WSKRZES; ExecuteHamB( Ham_CS_RoundRespawn, id ); }
Napisano 06.08.2011 16:45
0 użytkowników, 0 gości, 0 anonimowych