Code:
/********************************************************************************************************************************************\
** AssKicR's NShelpers - Created by AssKicR (Based on info from ns2amx by Mahnsawce) **
** **
** Revision v1.0: **
** ---------------------------------------------------------------------------------------------------------------------------------------- **
** Initial Release **
** **
** Added commands: **
** ---------------------------------------------------------------------------------------------------------------------------------------- **
** ns_getammo(id,Weapon) Get the ammo of a weapon (Marines Only) **
** ns_setammo(id,Weapon,Value) Set the ammo of a weapon (Marines Only) **
** ns_getres(id) Get resources of a player (Alien Only) **
** ns_setres(id,value) Set resources of a player (Alien Only) **
** ns_getjpfuel(id) Get the jetpack fuel of a player (Marines Only) **
** ns_setjpfuel(id,value) Set the jetpack fuel of a player (Marines Only) **
** ns_getenergy Get energy of a player (Alien Only) **
** ns_setenergy Set energy of a player (Alien Only) **
** ns_getteam(id) Get the team of a player **
** ns_getclass(id) Get the Class of a player **
** ns_getmask(id,mask) Get special mask. **
** ns_setmask(id,mask,onoff) Set special mask. (1=ON / 0=OFF) **
** ns_getbuild(svClassname[],iBuiltOnly,iNumber) Get number of structures.. (set iBuiltOnly greater than 0 to find just **
** completed and set iNumber to find specific one) **
** ns_popup(id,svMessage[]) Show a message to a person (Max 189 letters) **
** ns_hasweapon(id,weapon,setweapon=-1) Check if a person has a specified weapon.. **
** ns_getxp(id) Get a players experience **
** ns_setxp(id,xp) Set a players experience **
** ns_getlevel Returns a players level in combat 1-10 **
** ns_get_levels_spent(id) Returns the number of levels spent in Combat 1-10 **
** ns_set_levels_spent(id) Sets the number of levels spent in Combat 1-10 **
** is_combat() Returns 1 if the map is combat, 0 if it's not. **
** **
** Commands for less typing :P (Basicly combos of above commands) **
** ns_gethives() ns_getbuild("team_hive",1,0) for the lazy guy :P **
** ns_getcommander() Returns the ID of the commander. If there is no commander it returns 0 **
** is_digesting(id) Returns 1 if player is digesting. 0 if not **
\********************************************************************************************************************************************/