Raised This Month: $ Target: $400
 0% 

How to get an Event Information


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ILikePizza555
Junior Member
Join Date: Mar 2012
Old 04-15-2012 , 17:23   How to get an Event Information
Reply With Quote #1

I'm trying to make a plugin that displays what people are capping the point.

I made this:
Code:
public OnPluginStart()
{
    HookEvent("teamplay_point_startcapture", Event_Point_Captured);
}

public Action:Event_Point_Captured(Handle:Event, const String:name[], bool:dontBroadcast)
{
    new String:Buffer[32];
    GetEventString(Event, "cappers", Buffer, 32); 
    
    PrintCenterTextAll( "%s: %s", "Cappers", Buffer);
}
But all it does is display Cappers: and then nothing.

I'm really new to SourcePawn, anyone out there that can help?

Edit:
A crap wrong section. Is there anyone that can move this?
__________________

Last edited by ILikePizza555; 04-15-2012 at 17:25.
ILikePizza555 is offline
 



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 07:55.


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