Raised This Month: $51 Target: $400
 12% 

[INC] Half-Life Stocks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 07-19-2010 , 07:45   [INC] Half-Life Stocks
Reply With Quote #1

Stocks for Half-Life DM (valve)

PHP Code:
/*
* AMX mod X functions for Half-Life
*
* Version 1.1 (last update: 29.07.2010)
*
* http://hl.levshi.ru/forum/ - Russian Half-Life and Adrenaline Gamer Community
*
 
/* Returns player deaths.
*/
hl_get_user_deaths(client)
 
/* Sets player deaths.
*/
hl_set_user_deaths(clientdeaths)
 
/* Get amount of ammo in backpack on a user for a specific weapon.
* Look in hlsdk_const.inc for weapon types: HLW_*.
* Weapons on the same line uses the same ammo type:
* shotgun
* mp5, glock
* argrenade
* python
* gauss, egon
* rpg
* crossbow
* tripmine
* satchel
* handgrenade
* snark
* hornet
*/
hl_get_user_bpammo(clientweapon)
 
/* Restock/remove ammo in a user's backpack.
*/
hl_set_user_bpammo(clientweaponammo)
 
/* Get user model.
*/
hl_get_user_model(clientmodel[], len)
 
/* Set user model.
*/
hl_set_user_model(client, const model[])
 
/* Returns health value.
*/
hl_get_user_health(client)
 
/* Sets player health.
*/
hl_set_user_health(clienthealth)
 
/* Returns armor value.
*/
hl_get_user_armor(client)
/* Sets player armor.
*/
hl_set_user_armor(clientarmorvalue)
 
/* Returns team id. When length is greater then 0 then a name of team is set.
*/
hl_get_user_team(clientteam[] = ""len 0)
 
/* Set player team by teamname.
*/
hl_set_user_team(client, const team[])
 
/* Returns entity index of active weapon.
*/
hl_get_user_weapon_ent(client)
 
/* Returns amount of ammo in weapon's clip.
*/
hl_get_weapon_ammo(entity)
 
/* Set amount of ammo in weapon's clip.
*/
hl_set_weapon_ammo(entityclip)
 
/* Get weapon type. Corresponds to HLW_* in hlsdk_const.inc: 1 is HLW_CROWBAR, 2 is HLW_GLOCK and so on...
*/
hl_get_weapon_id(entity)
 
/* Returns weapon entity index from weaponbox.
*/
hl_get_wbox_weapon_ent(entity)
 
/* Returns amount of ammo in weaponbox.
*/
hl_get_wbox_ammo(entity)
 
/* Set amount of ammo in weaponbox.
*/
hl_set_wbox_ammo(entityammo)
 
/* Spawns a Half-Life player.
*/
hl_user_spawn(client)
 
/* Strips all weapons from player.
*/
hl_strip_user_weapons(client
 
/* Check if player in spectator mode.
*/
hl_get_user_spectator(client)
 
/* Switch player to spectator mode.
*/
hl_set_user_spectator(clientbool:spectator true)
 
/* Check if player have longjump module.
*/
hl_get_user_longjump(client
 
/* Set longjump module to player.
*/
hl_set_user_longjump(clientbool:longjump truebool:tempicon true
Attached Files
File Type: inc hl.inc (9.8 KB, 949 views)
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community

Last edited by KORD_12.7; 07-29-2010 at 05:53.
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
 



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 05:32.


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