Port events to transitional syntax.

This commit is contained in:
David Anderson
2014-12-13 12:51:16 -08:00
parent b607bfeca9
commit 28eb663f9b
5 changed files with 140 additions and 56 deletions
+4 -4
View File
@@ -190,9 +190,9 @@ public void ConVarChange_Alltalk(ConVar convar, const char[] oldValue, const cha
}
}
public Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
public Event_PlayerSpawn(Event event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
new client = GetClientOfUserId(event.GetInt("userid"));
if (!client)
{
@@ -209,9 +209,9 @@ public Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
}
}
public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
public Event_PlayerDeath(Event event, const String:name[], bool:dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "userid"));
int client = GetClientOfUserId(event.GetInt("userid"));
if (!client)
{