forked from UNLOZE/sm-plugins
Small fixes
This commit is contained in:
@@ -247,11 +247,8 @@ public MRESReturn AcceptInput(int pThis, Handle hReturn, Handle hParams)
|
||||
|
||||
public void Event_Spawn(Event event, const char[] name, bool dontBroadcast)
|
||||
{
|
||||
int client = GetClientOfUserId(GetEventInt(event, "userid"));
|
||||
if(!client)
|
||||
return;
|
||||
|
||||
CreateTimer(0.1, Timer_SpawnPost, client, TIMER_FLAG_NO_MAPCHANGE);
|
||||
int userid = GetEventInt(event, "userid");
|
||||
CreateTimer(0.1, Timer_SpawnPost, userid);
|
||||
}
|
||||
|
||||
public void Event_Death(Event event, const char[] name, bool dontBroadcast)
|
||||
@@ -263,8 +260,12 @@ public void Event_Death(Event event, const char[] name, bool dontBroadcast)
|
||||
g_Client_bEnabled[client] = false;
|
||||
}
|
||||
|
||||
public Action Timer_SpawnPost(Handle timer, int client)
|
||||
public Action Timer_SpawnPost(Handle timer, int userid)
|
||||
{
|
||||
int client = GetClientOfUserId(userid);
|
||||
if(!client)
|
||||
return;
|
||||
|
||||
if(!IsClientInGame(client) || !IsPlayerAlive(client))
|
||||
return Plugin_Stop;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user