Raised This Month: $ Target: $400
 0% 

Blocking Flashlight For Terrorists Only (moved from Support/Help)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Paulster1022
Member
Join Date: Apr 2006
Old 07-10-2007 , 15:09   Blocking Flashlight For Terrorists Only (moved from Support/Help)
Reply With Quote #1

Hello. Im trying to block the flashlight for terrorists but my code does not seem to work....as i hoped it would. The Flashlight is not working for both terrorists and counter terrorists....and something is definetly wrong..that i can not figure out. Also the client_print will not show anything.....the function is not working properly and mp_flashlight is 1.
Code:
register_impulse(100, "cl_cmd")

register_forward(FM_Cmdstart, "cl_cmd")


public cl_cmd(id, handle, seed)
{
  new impulse = get_uc(handle, UC_Impulse)
  if(cs_get_user_team(id) == CS_TEAM_T) && (impulse == 100)
  {
    	client_print(id, print_chat, "[Vampire Mod] Vampires Can Not Use Flashlights.")
  	set_uc(handle, UC_Impulse, 0)
  }
  return FMRES_HANDLED
}
Paulster1022 is offline
Send a message via AIM to Paulster1022
 



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


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