new color1 = 0, color2 = 0 new xxx = get_user_team(id) new xxx2 = get_user_team(pid) new team1 = xxx == 1, team2 = xxx2 == 1 if (team2 == 1) color1 = 255 else color2 = 255 if (team1 == team2) { }
public set_ranks(id) { if(level[id] <= 2) rank[id] = RANKS_Noobest if(level[id] >= 2) rank[id] = RANKS_Noob if(level[id] >= 5) rank[id] = RANKS_Newbiee if(level[id] >= 8) rank[id] = RANKS_Easy if(level[id] >= 11) rank[id] = RANKS_Normal if(level[id] >= 14) rank[id] = RANKS_Hard if(level[id] >= 17) rank[id] = RANKS_Expert if(level[id] >= 20) rank[id] = RANKS_SuperExpert if(level[id] >= 23) rank[id] = RANKS_Specialist if(level[id] >= 26) rank[id] = RANKS_Leader if(level[id] >= 29) rank[id] = RANKS_Mayor if(level[id] >= 32) rank[id] = RANKS_Pro if(level[id] >= 33) rank[id] = RANKS_SuperPro if(level[id] >= 36) rank[id] = RANKS_Heroic if(level[id] >= 43) rank[id] = RANKS_God }
public hud_status(id) { if(!is_user_alive(id) || !is_user_connected(id)/*how on world i can detect if a user isn't connected? no sense*/) return;
public xDeathMsg() { new id = read_data(1) new hs = read_data(3) xp[id]++ if(hs) xp[id] += 3 check_level(id, 1) save_data(id) }