it crashed because of heavy load of your script .
i remember i have read one of ur script was like this :
Quote:
public plugin_init()
{
RegisterHam(Ham_Touch, "weapon_hegrenade", "player_touchweapon")
RegisterHam(Ham_Touch, "weaponbox", "player_touchweapon")
RegisterHam(Ham_Touch, "armoury_entity", "player_touchweapon")
}
public player_touchweapon(id, ent)
if (is_user_bot(id))return HAM_SUPERCEDE
|
while the correct function callback param and usage should be like :
PHP Code:
public player_touchweapon(ent,id)
{
if (id<1 || id>MaxPlayers || !is_user_bot(id))return HAM_IGNORED;
//do whatever ... , if u want to block ALL-Weapons pick up for Bots Just Add this line:
return HAM_SUPERCEDE;
}
anyway , <as i know> players limit depends on:
1-
maxplayers <Value> (maxplayers 32)
2-
MAX Number of Spawn Points that each map provides which can be detected by counting info_player_ Entities .
So Hope This Will Help :
PHP Code:
#include <amxmodx>
#include <fakemeta>
new g_FMSpawn,Allowable_Spawn_Points;
new class_name[32];
public plugin_precache()
{
Allowable_Spawn_Points=0;
g_FMSpawn = register_forward(FM_Spawn, "EntSpawn");
//log_amx("-----------plugin_precache-----------");
}
public plugin_init()
{
//log_amx("-----------plugin_init-----------");
unregister_forward(FM_Spawn, g_FMSpawn);
register_clcmd("say /ttt","CmdSpawnInfo");
}
public EntSpawn(ent)
{
if(!pev_valid(ent))
{
return FMRES_IGNORED;
}
pev( ent, pev_classname, class_name, charsmax(class_name));
if(contain(class_name,"info_player_") != -1)
{
Allowable_Spawn_Points++;
}
return FMRES_IGNORED;
}
public CmdSpawnInfo(id)
{
client_print(id, print_chat,"Spawn Points limit in this map =%d - Max Players Server Allow =%d",Allowable_Spawn_Points,get_maxplayers());
}