Raised This Month: $ Target: $400
 0% 

Touch armoury_entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
wwzw
Member
Join Date: Feb 2009
Old 02-07-2012 , 06:08   Touch armoury_entity
Reply With Quote #1

I want to use the Touch armoury_entity to give players more weapons and grenades.
PHP Code:
RegisterHam(Ham_Touch,      "armoury_entity",   "Ham_Touch_entity_Pre",  0);
 
public 
Ham_Touch_entity_Pre(ient,id)
{
 if (
id || id max_player || (!is_user_alive(id)) || ient <= max_player || (!pev_valid(ient))) return HAM_IGNORED;
 static 
wname[64];
 
pev(ient,pev_model,wname,63)
//I would like to get more information:
//Weapon's ID, the number of bullets, the number of bullets in the clip within.
//The number of grenades (some maps a model there are three grenades).
//Body armor values
 

Please help me! Thanks!

Last edited by wwzw; 02-07-2012 at 07:27.
wwzw 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 00:21.


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