View Single Post
thecount
Veteran Member
Join Date: Jul 2013
Old 06-05-2014 , 13:53   Re: [CS:GO] Thirdperson
Reply With Quote #6

PHP Code:
#include <sourcemod>

public OnPluginStart(){
RegConsoleCmd("sm_tp"Command_Thirdperson"Sets thirdperson.");
RegConsoleCmd("sm_fp"Command_Firstperson"Sets firstperson.");
}

public 
Action:Command_Thirdperson (clientargs){
if(
IsPlayerAlive(client)){
PrintToChat(client"[SM] Thirdperson");
ClientCommand(client"thirdperson");
}else{
PrintToChat(client"[SM] Not alive.");
}
return 
Plugin_Handled;
}

public 
Action:Command_Firstperson (clientargs){
if(
IsPlayerAlive(client)){
PrintToChat(client"[SM] Firstperson");
ClientCommand(client"firstperson");
}else{
PrintToChat(client"[SM] Not alive.");
}
return 
Plugin_Handled;

Works?
thecount is offline