Chodzi o to żeby pojawiało się zostaniesz odrodzony za "i tu by odliczało" od 10 sekund
Podaje kod pluginu:
#include <amxmodx>
#include <amxmisc>
#pragma semicolon 1
#define TASK_TIME 5.0
#define ZP_TEAM_ZOMBIE (1<<0)
native zp_respawn_user(id,team);
new g_TeamJoin[33];
public plugin_init (){
register_plugin("[ZP Dizz[Y] Cs-Fpg.pl]Auto-Respawn","1.1","LuqqasBugsy&Hattrick");
register_dictionary("zp_auto_respawn.txt");
register_event("TeamInfo","fwPlayerJoinedTeam","a" ,"2=TERRORIST","2=CT");
}
public client_connect(id){
g_TeamJoin[id]=0;
}
public fwPlayerJoinedTeam(){
static id;
id=read_data(1);
if(!g_TeamJoin[id])g_TeamJoin[id]=1;
else{
g_TeamJoin[id]=0;
set_task(TASK_TIME,"respawn_player",id);
}
}
public respawn_player(id){
client_print(id,print_chat,"[ZP Dizz[Y] Cs-Fpg.pl] %L",LANG_PLAYER,"YOU_HAVE_BEEN_REVIVED");
zp_respawn_user(id,ZP_TEAM_ZOMBIE);
}
Użytkownik Kamilon edytował ten post 07.07.2012 22:37