Raised This Month: $ Target: $400
 0% 

I need help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ares0016
Junior Member
Join Date: Jan 2005
Old 05-22-2005 , 12:08   I need help
Reply With Quote #1

i need help ..
my plugin seems to be working exept it doesn't it says that command not valid
Code:
Code:
#include <amxmodx> 
//Credit goes to SnipaJ for my resorce 
public plugin_init() { 
   register_plugin("Colored NVG","1.0","TM16GODS") 
   register_clcmd("amx_nvgblue","nvgblue") 
   register_clcmd("amx_nvggreen","nvggreen") 
   register_clcmd("amx_nvgred","nvgred") 
   register_clcmd("amx_nvgpurple","nvgpurple") 
   register_clcmd("amx_nvgyellow","nvgyellow") 
   register_clcmd("amx_nvgorange","nvgorange") 
   register_clcmd("amx_nvggold","nvggold") 
} 

public nvgblue(id) { 
    message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id) 
    write_short(1000) // fade lasts this long duration 
    write_short(1000) // fade lasts this long hold time 
    write_short(1<<12) // fade type (in / out) 
    write_byte(0) // fade red 
    write_byte(0) // fade green 
    write_byte(255) // fade blue 
    write_byte(150) // fade alpha 
    message_end() 
    return PLUGIN_HANDLED 
} 

public nvggreenid) { 
    message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id) 
    write_short(1000) // fade lasts this long duration 
    write_short(1000) // fade lasts this long hold time 
    write_short(1<<12) // fade type (in / out) 
    write_byte(0) // fade red 
    write_byte(255) // fade green 
    write_byte(0) // fade blue 
    write_byte(150) // fade alpha 
    message_end() 
    return PLUGIN_HANDLED 
} 

public nvgred(id) { 
    message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id) 
    write_short(1000) // fade lasts this long duration 
    write_short(1000) // fade lasts this long hold time 
    write_short(1<<12) // fade type (in / out) 
    write_byte(255) // fade red 
    write_byte(0) // fade green 
    write_byte(0) // fade blue 
    write_byte(150) // fade alpha 
    message_end() 
    return PLUGIN_HANDLED 
} 

public nvgpurple(id) { 
    message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id) 
    write_short(1000) // fade lasts this long duration 
    write_short(1000) // fade lasts this long hold time 
    write_short(1<<12) // fade type (in / out) 
    write_byte(255) // fade red 
    write_byte(0) // fade green 
    write_byte(255) // fade blue 
    write_byte(150) // fade alpha 
    message_end() 
    return PLUGIN_HANDLED 
} 

public nvgyellow(id) { 
    message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id) 
    write_short(1000) // fade lasts this long duration 
    write_short(1000) // fade lasts this long hold time 
    write_short(1<<12) // fade type (in / out) 
    write_byte(255) // fade red 
    write_byte(255) // fade green 
    write_byte(0) // fade blue 
    write_byte(150) // fade alpha 
    message_end() 
    return PLUGIN_HANDLED 
} 

public nvgorange(id) { 
    message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id) 
    write_short(1000) // fade lasts this long duration 
    write_short(1000) // fade lasts this long hold time 
    write_short(1<<12) // fade type (in / out) 
    write_byte(255) // fade red 
    write_byte(125) // fade green 
    write_byte(0) // fade blue 
    write_byte(150) // fade alpha 
    message_end() 
    return PLUGIN_HANDLED 
} 

public nvggold(id) { 
    message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id) 
    write_short(1000) // fade lasts this long duration 
    write_short(1000) // fade lasts this long hold time 
    write_short(1<<12) // fade type (in / out) 
    write_byte(155) // fade red 
    write_byte(125) // fade green 
    write_byte(0) // fade blue 
    write_byte(150) // fade alpha 
    message_end() 
    return PLUGIN_HANDLED 
}
Ares0016 is offline
 



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 16:41.


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