AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to get an Event Information (https://forums.alliedmods.net/showthread.php?t=182967)

ILikePizza555 04-15-2012 17:23

How to get an Event Information
 
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?


All times are GMT -4. The time now is 07:55.

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