Raised This Month: $ Target: $400
 0% 

Take The Glow


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ezio_auditore
Senior Member
Join Date: May 2013
Old 03-15-2014 , 04:35   Take The Glow
Reply With Quote #1

OK!!

This is a very simple plugin;
in this plugin, a random player glows on round start
when he gets killed, his glow is transferred to the killer

on round end, everyone is killed expect the glowing player

But my method of transferring the glow don't work
I guess the problem is with HookKilled function

I tried this
PHP Code:
//in plugin_init
RegisterHam(Ham_Killed"player" "HookKilled"
later on
PHP Code:
 
new kID
 
public HookKilled(victimkillershouldgib)
{
 if (
isGlowing(victim)){
  
kID killer
  glow
(kID255,255,255)
  
unglow(victim)
  
get_user_name(kIDsName32)//It is a bugfix
  
get_user_team(kIDsTeam32)
  
glowmsg(sName,sTeam)
 }

So, where I am doing wrong??

the .sma is in attachments
Attached Files
File Type: sma Get Plugin or Get Source (take_the_glow.sma - 557 views - 2.2 KB)
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
 


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


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