PHP Code:
public void Event_PlayerDeath(Event hEvent, const char[] sEvName, bool bDontBroadcast)
{
int iUserID = hEvent.GetInt("userid");
PrintToConsole("userid: %i", iUserID);
}
%i or %d for integers value, check this wiki to know for others like string or float
Format Class Functions
Also, PrintToConsole if for print the text into client console and not server console,
PrintToServer is for print the text into the server console,
and PrintToChat is for print the text into the chat to the client
For events, you can find in
Game Events
For the player_death event :
General Game Events player_death
hEvent is the handle for the event.
__________________