AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Vision (https://forums.alliedmods.net/showthread.php?t=64410)

Troi 12-15-2007 08:36

Vision
 
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??



_Master_ 12-15-2007 10:42

Re: Vision
 
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 ).

Troi 12-15-2007 12:44

Re: Vision
 
using write_byte() right? :|

Troi 12-16-2007 05:40

Re: Vision
 
What I did wrong??... I actually forgot coding but :D ....

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




All times are GMT -4. The time now is 11:04.

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