Raised This Month: $ Target: $400
 0% 

[SOLVED]scenario


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 04-18-2007 , 10:39   Re: [SOLVED]scenario
Reply With Quote #2

PHP Code:
new const CLEAR 0
new iScenarioMsgID
 
public plugin_init()
{
......
  
iScenarioMsgID get_user_msgid("Scenario")
......
}
 
.....
 
stock manage_Scenario_hud(idact)
{
//show current grenade state on down screen front of "money" icon
 
if ( !is_user_connected(id) && !is_user_alive(id) )
  return 
0
 
 
if ( act == CLEAR )
 {
  
message_begin(MSG_ONEiScenarioMsgID_id)
  
write_byte(0)//  Active
  
return message_end()
 }
 new 
type iUserNadeCurType[id]
 
message_begin(MSG_ONEiScenarioMsgID_id)
 
write_byte(1)//  Active
 
write_string(sNadeStateString[type])//  Sprite
 
write_byte(100)//  Alpha
 
write_short(0)//  FlashRate
 
write_short(0)//  Unknown
 
return message_end()

snippet from my "M4withM203" plugin.
http://forums.alliedmods.net/showthread.php?t=51086
Ryu2877 is offline
 


Thread Tools
Display Modes

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 20:54.


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