Quote:
|
Originally Posted by Stealth Penguin
This is part of my plugin and the whole thing compiles fine with no errors but won't do anything when I use it in my menu in game... the menu part functions perfectly but I can't seem to get this set_user_godmode command to work correctly (and yes I have all the includes).
Please check it over for me? Any advice would be greatly appreciated.
Code:
public TGOMenuCommand(id,key)
{
new player = g_menuPlayers[id][g_nTGOMenuPosition[id] * 7 + key]
switch (key)
{
case 8: ShowTGOMenu(id,++g_nTGOMenuPosition[id])
case 9: ShowTGOMenu(id,--g_nTGOMenuPosition[id])
default: set_user_godmode(player, 1 )
}
server_exec()
ShowTGOMenu(id,g_nTGOMenuPosition[id])
return PLUGIN_HANDLED
}
|
Put quotes around the 1:
Code:
default: set_user_godmode(player,"1")
Make sure the plugin is enabled in your plugins.ini