Cstrike
Content:
Notes
The Cstrike module was researched and made by Johnny Got His Gun. It contains many natives for changing Counter-Strike gameplay.
- cstrike.inc (Provides natives to interface with Counter-Strike and Condition-Zero.)
CStrike Modules Constants:
CS Weapon Constants:
CSW_P228 1
CSW_SCOUT 3
CSW_HEGRENADE 4
CSW_XM1014 5
CSW_C4 6
CSW_MAC10 7
CSW_AUG 8
CSW_SMOKEGRENADE 9
CSW_ELITE 10
CSW_FIVESEVEN 11
CSW_UMP45 12
CSW_SG550 13
CSW_GALI 14
CSW_GALIL 14
CSW_FAMAS 15
CSW_USP 16
CSW_GLOCK18 17
CSW_AWP 18
CSW_MP5NAVY 19
CSW_M249 20
CSW_M3 21
CSW_M4A1 22
CSW_TMP 23
CSW_G3SG1 24
CSW_FLASHBANG 25
CSW_DEAGLE 26
CSW_SG552 27
CSW_AK47 28
CSW_KNIFE 29
CSW_P90 30
Team Constants:
enum CsTeams {
CS_TEAM_T = 1,
CS_TEAM_CT = 2,
CS_TEAM_SPECTATOR = 3
};
Model Constants:
enum CsInternalModel {
CS_DONTCHANGE = 0,
CS_CT_URBAN = 1,
CS_T_TERROR = 2,
CS_T_LEET = 3,
CS_T_ARCTIC = 4,
CS_CT_GSG9 = 5,
CS_CT_GIGN = 6,
CS_CT_SAS = 7,
CS_T_GUERILLA = 8,
CS_CT_VIP = 9
};
Armor Constants:
enum CsArmorType {
CS_ARMOR_NONE = 0, // no armor
CS_ARMOR_KEVLAR = 1, // armor
CS_ARMOR_VESTHELM = 2 // armor and helmet
};
Functions
cs_get_hostage_foll - Returns the index of an entity of which a hostage is following.
cs_get_hostage_id - Returns the unique hostage ID of a hostage entity.
cs_get_no_knives - Returns 1 if no knives mode is enabled, otherwise 0.
cs_get_user_bpammo - Returns the amount of ammo in a player's backpack for a specific weapon.
cs_get_user_buyzone - Returns 1 if a player is in a buyzone, 0 otherwise.
cs_get_user_deaths - Returns a user's deaths.
cs_get_user_defuse - Returns 1 if a user has a defuse kit, 0 otherwise.
cs_get_user_driving - Returns different values depending on if user is driving a vehicle.
cs_get_user_hasprim - Returns 1 when user has a primary weapon OR a shield in inventory, otherwise 0.
cs_get_user_model - Finds a user's model.
cs_get_user_money - Returns a user's money.
cs_get_user_nvg - Returns 1 if a player has night vision goggles, 0 otherwise.
cs_get_user_plant - Returns 1 if a player can plant the bomb.
cs_get_user_stationary - Returns 1 if user is using a stationary gun, else 0.
cs_get_user_team - Gets a user's CS team.
cs_get_user_tked - Returns 1 if specified user has TKed (team killed).
cs_get_user_vip - Returns 1 if the player is the VIP, 0 otherwise.
cs_get_weapon_ammo - Returns the amount of ammo in a player's weapon clip.
cs_get_weapon_burst - Returns 1 if the player's weapon is in burst mode, 0 otherwise.
cs_get_weapon_id - Get weapon type.
cs_get_weapon_silen - Returns 1if a player's weapon is silenced, 0 otherwise.
cs_reset_user_model - Reset a player's model.
cs_set_hostage_foll - Sets what a hostage follows.
cs_set_no_knives - Sets whether or not no knives mode is enabled.
cs_set_user_bpammo - Restock/remove ammo in a user's backpack for a specific weapon.
cs_set_user_deaths - Sets a user's deaths
cs_set_user_defuse - Sets whether a user has the defusekit.
cs_set_user_model - Sets a player's model (CS only).
cs_set_user_money - Sets a user's money count.
cs_set_user_nvg - Sets whether a user has night vision goggles.
cs_set_user_plant - Sets whether a player can plant the bomb.
cs_set_user_team - Sets a CS player's team without killing the player.
cs_set_user_tked - Sets whether or not specified user has TKed (team killed).
cs_set_user_vip - Sets whether a user is the VIP.
cs_set_weapon_ammo - Sets the amount of ammo in a player's weapon clip.
cs_set_weapon_burst - Sets whether the player's weapon is in burst mode.
cs_set_weapon_silen - Sets whether a player's weapon is silenced or not.
cs_user_spawn - Spawns a player. EXPERIMENTAL
User Contributed Notes
lilvietx2 at yahoo dot com |
Sep-13-05 04:01:37 |
uhh. i started my dedicated server with amx modx and everything i read "My admin doesn't work!" i did what it said but it still doesnt work. why wouldnt it work?
|
flying_donkey_99 at hotmail dot com |
Sep-02-05 11:33:31 |
when i install amx and click on dedicated server and click next it says that i have to run dedicated server once before i can use it but i have dedicated server running already.
can someone please halp me with this?
|
night_reaper999 at yahoo dot com |
Aug-01-05 00:51:29 |
i started a dedicated server and i have a problem with adding plugins i just dont noe how 2 compile them!!! anyway i dont noe how 2 add cutom maps 2.
PLZ HELP ME!!!!!
|
seeko at ugotpwned dot info |
Jul-31-05 02:19:51 |
I installed the latest AMX MOD X file with the installer to my server through FTP. After doing that I changed a few things in the metamod file to make it read the AMX MOD X file. The file still isn't being read. Everytime I type in anything involving amx it just says unknown command. Please someone help me, I've been struggling with this all day. My e-mail is [email protected]
[ uGp ]:
|
me |
Jul-19-05 12:53:27 |
go in a server wxith amx modx and type in the console amx_langmenu
exit the console
pres 1 till you see your language then press 2
i had the same problem
|