Posted this in the SM Discord but I'll post here too;
1. Might want to toss
#pragma newdecls required in there and recompile to see if you've forgotten anything. For example, I noticed a missing return type for
OnClientCookiesCached.
2. That menu
switch setup, yikes. Why not utilize your existing
ragdollType[client] variable to determine which menu item to set to
ITEMDRAW_DISABLED. Something like this quick and dirty thing I threw together:
Lots of ternaries but it should do the job
PHP Code:
public void RagdollMenu(int client)
{
Menu menu = new Menu(RagdollMenuHandler);
menu.SetTitle("Select your enemies' ragdolls:");
menu.AddItem("0", "No Special Ragdoll", (ragdollType[client] == 0) ? ITEMDRAW_DISABLED : ITEMDRAW_DEFAULT);
menu.AddItem("1", "Burning", (ragdollType[client] == 1) ? ITEMDRAW_DISABLED : ITEMDRAW_DEFAULT);
menu.AddItem("2", "Electrocuted", (ragdollType[client] == 2) ? ITEMDRAW_DISABLED : ITEMDRAW_DEFAULT);
menu.AddItem("3", "Gold", (ragdollType[client] == 3) ? ITEMDRAW_DISABLED : ITEMDRAW_DEFAULT);
menu.AddItem("4", "Ice", (ragdollType[client] == 4) ? ITEMDRAW_DISABLED : ITEMDRAW_DEFAULT);
menu.AddItem("5", "High Velocity", (ragdollType[client] == 5) ? ITEMDRAW_DISABLED : ITEMDRAW_DEFAULT);
menu.AddItem("6", "Cow Mangler Dissolve", (ragdollType[client] == 6) ? ITEMDRAW_DISABLED : ITEMDRAW_DEFAULT);
menu.AddItem("7", "Head Decapitation", (ragdollType[client] == 7) ? ITEMDRAW_DISABLED : ITEMDRAW_DEFAULT);
menu.AddItem("8", "Random", (ragdollType[client] == 8) ? ITEMDRAW_DISABLED : ITEMDRAW_DEFAULT);
menu.Display(client, 20);
}