Raised This Month: $ Target: $400
 0% 

I need help


Post New Thread Reply   
 
Thread Tools Display Modes
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
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-22-2005 , 12:32  
Reply With Quote #2

Code:
public nvggreenid) {
Is your problem.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Ares0016
Junior Member
Join Date: Jan 2005
Old 06-04-2005 , 01:22   Thanks but theres still one more problem
Reply With Quote #3

first of all i want to thank you
i have been busy with school so i did not check this.

I came acrossed 1 problem
the nvg to stay on

could u or someone else who reads this plz help me
PS: could i make it so when u turn on regular nvg it activates it
this of corse after the person types the command

I like the help thanks.
Ares0016 is offline
Reply



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