Raised This Month: $ Target: $400
 0% 

Events!!!!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Troi
Member
Join Date: Aug 2006
Old 01-15-2007 , 07:46   Events!!!!!
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_event("DeathMsg""reset_render""a")
 
register_event("BuyClose""leavebuyzone""a")
}
public 
leavebuyzone(id) {
 
client_print(idprint_center"You leaving buy zone")
}
public 
reset_render(id) {
 
client_print(idprint_center"You are daed")
 
set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha255)
 
set_user_footsteps(id0)
 
set_user_maxspeed(id, -1.0)
 
set_user_gravity(id1.0)

Why events isnt working??
Troi is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-15-2007 , 08:29   Re: Events!!!!!
Reply With Quote #2

I don't know why BuyClose isn't working, but i'm using deathmsg different:

Code:
register_message(get_user_msgid("DeathMsg"), "deathmessage") public deathmessage(msg_id, msg_dest, msg_entity){  new killer = get_msg_arg_int(1) //if you need the killer in the future  new id = get_msg_arg_int(2) //victim  client_print(id, print_center, "You are daed")  set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255)  set_user_footsteps(id, 0)  set_user_maxspeed(id, -1.0)  set_user_gravity(id, 1.0) }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-15-2007 , 11:23   Re: Events!!!!!
Reply With Quote #3

Code:
 register_event("DeathMsg", "reset_render", "a")  register_event("BuyClose", "leavebuyzone", "a")
"a" is global, no id passed. Change to "b".

You probably can't do this on a dead client
Code:
 set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255)  set_user_footsteps(id, 0)  set_user_maxspeed(id, -1.0)  set_user_gravity(id, 1.0)
[ --<-@ ] Black Rose is offline
Troi
Member
Join Date: Aug 2006
Old 01-15-2007 , 15:20   Re: Events!!!!!
Reply With Quote #4

But I want to make a render reset when player dies.. That on the next round player would be visible, if dont die the invisibility leaves, but .. gravity is reseting without events.. I dont know what to do.... =[
thanks a lot..
Troi is offline
Troi
Member
Join Date: Aug 2006
Old 01-20-2007 , 07:15   Re: Events!!!!!
Reply With Quote #5

How about ResetHUD ??? anyone knows maybe?
Troi is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-20-2007 , 07:39   Re: Events!!!!!
Reply With Quote #6

Code:
  register_event("ResetHUD","playerSpawn","b") // Player spawns after death   public playerSpawn(id) { //Do something on when this player spawns //id = id }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat 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 22:30.


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