Hey , I need help on this plugin , if you really good scripters could double check it for me and see that it is right. I compiled it and no errors but I'm double checking to see that it actually works. If your wondering what I'm trying to do , I'm trying to give a player godmode and set him to glow as soon as he presses v when he binds v to lss in the console. Here is the plugin. :
Code:
#include <amxmodx>
#include <fun>
#define TASK_ID 1234
public plugin_init()
{
register_plugin("Life Saver Shield","0.1","Peli")
register_cvar("amx_lss","1")
register_clcmd("v","lss",-1,"Enables your Life Saver Shield")
}
public lss(id)
{
new sID[2]
sID[0] = id
set_task( 5.0, "SetPowers", TASK_ID, sID, 1 )
return PLUGIN_HANDLED
}
public SetPowers(sID[])
{
new id = sID[0]
set_user_godmode(id,1)
set_user_rendering(id,kRenderFxGlowShell,255,255,255,kRenderNormal,255)
return PLUGIN_CONTINUE
}