Raised This Month: $ Target: $400
 0% 

Vision


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Troi
Member
Join Date: Aug 2006
Old 12-15-2007 , 08:36   Vision
Reply With Quote #1

Hey, is possible some how make a vision that player can see all INVERTED colors, by pressing a button? And what command to use in amxx_studio?

PHP Code:
public plugin_init()
{
register_clcmd("amx_invert","invert")
}
public 
invert(id) {
   
what must be here??

Troi is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 12-15-2007 , 10:42   Re: Vision
Reply With Quote #2

Can't be done.
World Rendering is beyond the scope of amxx.
All you can do is apply a "filter" to the "natural" view ( like nightvision ).
_Master_ is offline
Troi
Member
Join Date: Aug 2006
Old 12-15-2007 , 12:44   Re: Vision
Reply With Quote #3

using write_byte() right?
Troi is offline
Troi
Member
Join Date: Aug 2006
Old 12-16-2007 , 05:40   Re: Vision
Reply With Quote #4

What I did wrong??... I actually forgot coding but ....

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "AVP"
#define VERSION "1.0"
#define AUTHOR "GetH!X"
#define CLASS_HUMAN 0
#define CLASS_ALIEN 1
#define CLASS_PREDATOR 2
#define MAXCLASSES 3
new PlayerClass[33]
new const 
CLASSES[MAXCLASSES][] = {
    
"Human",
    
"Alien",
    
"Predator"
}

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_menucmd(register_menuid("menu_ChooseRace"),1023,"DoChooseRace")
    
register_clcmd("say /race""ChooseRace")
    
register_clcmd("say_team /race""ChooseRace")
}
public 
client_connect(id) {
    
ChooseRace(id)
}
stock ChooseRace(id) {
    new 
menu[192]
    new 
keys MENU_KEY_0|MENU_KEY_1|MENU_KEY_2
    format
(menu191"[AVP] Choose your char^n^n1. Stay human^n2. Alien^n3. Predator"
    
show_menu(idkeysmenu, -1"menu_ChooseRace"
    return 
PLUGIN_CONTINUE
}
public 
DoChooseRace(idkey) {
    if(
key == 0) {
        
PlayerClass[id] = CLASS_HUMAN
        client_print
(idprint_chat"[AVP] HUMAN!")
        
human_main(id)
    }
    if(
key == 1) {
        
PlayerClass[id] = CLASS_ALIEN
        client_print
(idprint_chat"[AVP] ALIEN!")
        
alien_main(id)
    }
    if(
key == 2) { 
        
PlayerClass[id] = CLASS_PREDATOR
        client_print
(idprint_chat"[AVP] PREDATOR!")
        
predator_main(id)
    }
    return 
PLUGIN_HANDLED
}
public 
human_main(id) {
    
client_print(idprint_center"You are human")
    
//here will be some basic skills
}
public 
alien_main(id) {
    
client_print(idprint_center"You are alien")
    
//here will be some basic skills
}
public 
predator_main(id) {
    
client_print(idprint_center"You are predator")
    
//here will be some basic skills

Troi is offline
Old 12-16-2007, 09:18
_Master_
This message has been deleted by _Master_.
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 11:04.


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