Raised This Month: $ Target: $400
 0% 

Witch crown announce?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
titan_rw
Member
Join Date: Sep 2009
Old 10-05-2009 , 10:11   Re: Witch crown announce?
Reply With Quote #1

I used olj's version, but changed it a little to show a message when oneshot is false. So the person knows for sure they didn't get the crown.

Code:
public Action:EventWitchDeath(Handle:event, const String:name[], bool:dontBroadcast)
 {
  new killer = GetClientOfUserId(GetEventInt(event, "userid"));
  if (!IsValidClient(killer)) return;
  decl String:killername[MAX_NAME_LENGTH];
  GetClientName(killer, killername, MAX_NAME_LENGTH);
  if (GetEventBool(event, "oneshot"))
   {
    PrintToChatAll("\x03%s \x04CROWNED the witch!", killername);
   }
   else
   {
    PrintToChatAll("\x03%s \x04has \x03FAILED \x04to crown the witch!", killername);
   }
 }
Of course you still get the failed message when you weren't trying to crown. Such as when a teammate startles the witch, gets incapped, and you unload into the witch before she shreds the other guy. Not really trying to crown, just kill quickly. Ohh well.

I'm about 95% for a true crown. On advanced and lower, I only use 1 shell anyway. On expert, I may click-spam if I'm not super confident at the time. With this plugin I can still tell if I did crown or not.

Thanks again.
titan_rw 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 03:58.


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