diff --git a/AdminCheats/scripting/AdminCheats.sp b/AdminCheats/scripting/AdminCheats.sp index 75f88bb7..a4f6684d 100644 --- a/AdminCheats/scripting/AdminCheats.sp +++ b/AdminCheats/scripting/AdminCheats.sp @@ -102,6 +102,9 @@ public Action OnCheatCommand(int client, const char[] command, int argc) if(!argc && (StrEqual(command, "kill") || StrEqual(command, "explode"))) return Plugin_Continue; + if(StrEqual(command, "setang")) + return Plugin_Continue; + if(!IsClientAuthorized(client) || !CheckCommandAccess(client, "", ADMFLAG_CHEATS)) return Plugin_Handled; diff --git a/PlayerVisibility/scripting/PlayerVisibility.sp b/PlayerVisibility/scripting/PlayerVisibility.sp index 8e0488d7..f7b5d42f 100644 --- a/PlayerVisibility/scripting/PlayerVisibility.sp +++ b/PlayerVisibility/scripting/PlayerVisibility.sp @@ -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; diff --git a/RadarSpotAll/scripting/RadarSpotAll.sp b/RadarSpotAll/scripting/RadarSpotAll.sp index bc07d683..4a10af72 100644 --- a/RadarSpotAll/scripting/RadarSpotAll.sp +++ b/RadarSpotAll/scripting/RadarSpotAll.sp @@ -33,6 +33,7 @@ public void OnPluginStart() HookEvent("player_spawn", Event_Spawn, EventHookMode_Post); AutoExecConfig(true); + RadarModeChanged(g_cRadarMode, "", ""); } public void RadarModeChanged(ConVar cvar, const char[] sOldVal, const char[] sNewVal)