Raised This Month: $ Target: $400
 0% 

Life Saver Shield


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 06-10-2004 , 00:35   Life Saver Shield
Reply With Quote #1

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 }
Peli is offline
Send a message via MSN to Peli
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 06-10-2004 , 02:19  
Reply With Quote #2

Anyone problems? Can someone test it for me? My servers down.
Peli is offline
Send a message via MSN to Peli
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 06-10-2004 , 02:31  
Reply With Quote #3

Code:
#include <amxmodx> #include <fun> 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) {      set_task( 5.0, "SetPowers",id )       return PLUGIN_HANDLED } public SetPowers(id) {      set_user_godmode(id,1)      set_user_rendering(id,kRenderFxGlowShell,255,255,255,kRenderNormal,255)       return PLUGIN_CONTINUE }
Freecode is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 06-10-2004 , 02:50  
Reply With Quote #4

Thanks Freecode.
Peli is offline
Send a message via MSN to Peli
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode