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

[SOLVED]scenario


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-18-2007 , 09:44   [SOLVED]scenario
Reply With Quote #1

Hi.I want to know how to use this type of message....(an exemple..)

http://wiki.amxmodx.org/index.php/Ha...vents#Scenario

"SOLVED" Thanks...
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 04-18-2007 at 10:11.
Alka is offline
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
Reply



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:34.


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