Hi friends. I have a problem.
This plugin change people that are in spec to CT o T
Well, when a player change to a X team, dont have HP, AP, CrossMirror.
That I have to do:
PHP Code:
/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>
#define PLUGIN "Spec To CT o T"
#define AUTHOR "ReymonARG"
#define VERSION "1.0"
#define CS_TEAM_SPEC 3
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ct", "gotoct")
register_clcmd("say /tt", "gotott")
}
public gotoct(id) {
if(get_user_team(id) == CS_TEAM_SPEC)
{
cs_set_user_team(id, CS_TEAM_CT);
}
if(get_user_team(id) !== CS_TEAM_SPEC)
{
ColorChat(id,RED,"No tiene permitido cambiarte de Equipo");
}
}
public gotott(id) {
if(get_user_team(id) == CS_TEAM_SPEC)
{
cs_set_user_team(id, CS_TEAM_T);
}
if(get_user_team(id) !== CS_TEAM_SPEC)
{
ColorChat(id,RED,"No tiene permitido cambiarte de Equipo");
}
}
__________________