Well I did it now the code is:
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <fakemeta>
#define PLUGIN "Respawn as T"
#define VERSION "1.0"
#define AUTHOR "Filo"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say respawn", "respawn")
}
public respawn(id)
{
if(is_user_connected(id))
if (get_user_health("0"))
{
set_user_health ("100")
cs_set_user_team (id,CS_TEAM_T)
print_chat ("You has been Respawned as Terrorist")
}
}
But I have these errors:
Warning: Loose indentation on line 16
Error: Argument type mismatch (argument 1) on line 25
Error: Argument type mismatch (argument 1) on line 27
Error: Invalid function call, not a valid address on line 29
Warning: Expression has no effect on line 29
Error: Expected token: ";", but found ")" on line 29
Error: Invalid expression, assumed zero on line 29
Error: Too many error messages on one line on line 29
Compilation aborted.
6 Errors.