can be linked with hamspawn putinserver??
This would not want to make the plugin:
I correct errors that do not know how to adapt to ham_pawn public putinserver unopened another public or whatever works in one .. because if you would follow sepearo working separately ...
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "auto restart round knife"
#define VERSION "test1"
#define AUTHOR "KramerEditor"
new g_players
new bool: g_usado // it acts just 1 time ..
public plugin_init () {
register_plugin ("PLUGIN", "VERSION", "AUTHOR")
RegisterHam (Ham_Spawn, "player", "ham_spawn", 1);
g_players = get_maxplayers ()
}
public client_putinserver (id) // I want no change .. I just want to occur when connecting to the server .. ..
{
if (! g_usado) // act 1 time - HOME
if (get_playersnum ()> = 2)
{
server_cmd ("sv_restartround 1") // restart the round to detect more than 2 players ..
}
ham_spawn () // it acts like one once you pass the restartround and it acts no more .. or is that long after the restartround weapons. and never until change the map .. ie after I draw weapons that can grab back the weapons .. (only 1 time as aga in the first spawn)
{
strip_user_weapons (id) // We take out the weapons ...
give_item (id, "weapon_knife") // You give the knife
}
g_usado = true // act 1 time up here - (vedadero)
}
return PLUGIN_HANDLED
}
tranks!!