Ok np:
Player Mask Constants:
The mask list can be found in ns_const.inc
In classic the mask only work if there enought chamber,if you have MASK_CARAPACE and 1 chamber ,you have 16 armor,if you have 3 chamber you have 30 armor.if you have 0 chamber you lose the mask.
The same as the other masks.
the best is you test if he has really the mask:
Code:
client_print(id,print_chat,"has mask:%d",ns_get_mask(id,MASK_CARAPACE))
Class Constants:
the classes also stand in ns_const.inc,the fist class CLASS_UNKNOWN has classid 0,CLASS_SKULK has classid 1,...
You can read the clasnumber with
You can hook if someone change the class with
Code:
client_changeclass(id,newclass,oldclass)
Weapon Constants:
You know ns_const.inc,same as the class,WEAPON_NONE = 0,WEAPON_CLAWS = 1,...
To give someone a weapon use
Code:
give_item(id,"weaponname")
To test if someone have this weapon use
Code:
ns_has_weapon(id,weapon)
Hive Trait Constants:
This mean which Hive have which chamber
To find it out
Code:
new ent = find_ent(-1,"team_hive")
ns_get_hive_trait(ent)
Quote:
Structures and Impulse:
how can i use the command client_build( index, structure, type, impulse )
how do i get structure types to put in the structure argument and what is impulse?
|
client_built ( index, structure, type, impulse )
index = id of player
If type is 1, it's a Marine structure. If type is 2, it's an Alien structure.
impulse = the impulse number,every building,command,.. have a number:
Code:
Alien resourcower = 90,
Alien Offenschamber = 91,
Alien Defenschember = 92,
Alien Sensorychamber= 93,
Alien movementchamber = 94,
Alien hive = 95,
...
this numbre can be found in ns_sdk,or here:
http://www.nsmod.org/forums/index.php?showtopic=1751
You can get many many more infos and plugins on
www.nsmod.org (the big NS Modder community)
And the best and usefull sites ever :
http://www.amxmodx.org/doc/ http://wiki.amxmodx.org/index.php/Main_Page
__________________