Raised This Month: $ Target: $400
 0% 

Natural Selection Stock Functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 04-03-2004 , 22:16   Natural Selection Stock Functions
Reply With Quote #1

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                             **
\********************************************************************************************************************************************/
Attached Files
File Type: inc nshelpers.inc (16.1 KB, 1549 views)
__________________
My Plugins

Got ??
AssKicR is offline
 



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 22:07.


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