Raised This Month: $ Target: $400
 0% 

Finding Entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-20-2012 , 07:09   Finding Entity
Reply With Quote #1

How to find which weapon user is holding on Ham_Spawn?
If he is holding "m4a1" or any other weapon,then implement this:

PHP Code:
if(cs_get_user_bp_ammo(id) < 20)
{

client_print(id,print_chat,"[Trooper] You have low m4a1/weapon ammo,Becareful")


Can I use this?

PHP Code:
if(cs_get_weapon_id(id) == 22//22 for m4a1 
{
if(
cs_get_user_bp_ammo(id) < 20)
{

client_print(id,print_chat,"[Trooper] You have low m4a1/weapon ammo,Becareful")

}


__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]

Last edited by Waleed; 06-20-2012 at 07:13.
Waleed is offline
Send a message via Skype™ to Waleed
 



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 06:18.


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