#pragma semicolon 1 #define DEBUG #define PLUGIN_AUTHOR "DiogoOnAir" #define PLUGIN_VERSION "1.00" #include <sourcemod> #include <sdktools> #include <cstrike> #pragma newdecls required public Plugin myinfo = { name = "", author = PLUGIN_AUTHOR, description = "", version = PLUGIN_VERSION, url = "https://www.steamcommunity.com/id/diogo218dv" }; public void OnPluginStart() { RegAdminCmd("sm_respawndead", Cmd_RespawnDead, ADMFLAG_CHEATS); } public Action Cmd_RespawnDead(int client, int args) { for(int i = 1; i <= MaxClients; i++) { if(!IsPlayerAlive(i)) { CS_RespawnPlayer(i); } } }