static int buildin_maprespawnteamid_sub_pc(struct map_session_data* sd, va_list ap){ int16 m=va_arg(ap,int); int team_id=va_arg(ap,int); int flag=va_arg(ap,int); if(!sd || sd->bl.m != m) return 0; if( (sd->status.team == team_id && flag&1) || //Warp out owners (sd->status.team != team_id && flag&2) || //Warp out outsiders ) pc_setpos(sd,sd->status.save_point.map,sd->status.save_point.x,sd->status.save_point.y,CLR_TELEPORT); return 1;}
BUILDIN_FUNC(maprespawnteamid){ const char *mapname=script_getstr(st,2); int team_id=script_getnum(st,3); int flag=script_getnum(st,4); int16 m=map_mapname2mapid(mapname); if(m == -1) return 0; //Catch ALL players (in case some are 'between maps' on execution time) map_foreachpc(buildin_maprespawnteamid_sub_pc,m,team_id,flag); return 0;}
can i request some source like the MapRespawnGuildID
but not guild it read a variable teamwar
please help
like this
pc.c
pc.h
then the maprespawnguildid
Share this post
Link to post
Share on other sites