Quote:
Originally Posted by potatoz
Both of these codes use a messy mix of old and new syntax and has uncompleted code (";") They do however have the basis down
|
ironically that your edit still had missing parts of transitional syntax

, so here:
PHP Code:
#include <sourcemod>
#pragma newdecls required //Force (basics) of Transitional Syntax
public Plugin myinfo =
{
name = "block team change",
author = "potatoz",
description = "blocks team changes whilst client is alive",
version = "1.0",
url = ""
};
public void OnPluginStart()
{
AddCommandListener(Command_JoinTeam, "jointeam");
}
public Action Command_JoinTeam(int client, char[] command, int args)
{
if(1 <= client <= MaxClients && IsClientInGame(client) && IsPlayerAlive(client))
{
ReplyToCommand(client, " \x07You may not switch team whilst alive");
return Plugin_Handled;
}
return Plugin_Continue;
}
__________________