RSSy MYGO.pl Opublikowano Kwiecień 3, 2020 o 05:46 RSSy Udostępnij Opublikowano Kwiecień 3, 2020 o 05:46 Hello... here is Nice OFF Spec by sector sma PHP Code: /* Plugin generated by AMXX-Studio */#include <amxmodx>#include <cstrike>#include <colorchat>new nNumplayers, nMaxplayerspublic plugin_init() { register_plugin("Nice OFF Spec", "1.0", "sector") register_logevent("nice_off_spec", 2, "1=Round_Start") nMaxplayers = get_maxplayers()}public nice_off_spec() { nNumplayers = get_playersnum() if(nNumplayers == nMaxplayers) { for(new s = 1; s <= nMaxplayers; s++) { new players[32], pnum, tempid; get_players(players, pnum, "h"); for (new x ; x<pnum ; x++) { tempid = players[x]; switch( cs_get_user_team(tempid) ) { case CS_TEAM_CT: continue; case CS_TEAM_T: continue; case CS_TEAM_UNASSIGNED: { if (!(get_user_flags(tempid) & ADMIN_IMMUNITY)) { server_cmd("kick # %d ^"[AMXX] Spectating Not Allowed when SERVER is FULL!^"", get_user_userid(tempid)); } } case CS_TEAM_SPECTATOR: { if (!(get_user_flags(tempid) & ADMIN_IMMUNITY)) { server_cmd("kick # %d ^"[AMXX] Spectating Not Allowed when SERVER is FULL!^"", get_user_userid(tempid)); ColorChat(0, NORMAL, "^1[^4AMXX^1] ^3All Spectators Kicked!") } } } } } }}/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }*/ i did lil changes and my server crashed PHP Code: public plugin_init() { register_plugin("Spectator Kicker", "1.0", "sector") register_logevent("nice_off_spec", 2, "1=Round_Start") register_logevent("nice_off_spec", 2, "1&Restart_Round_", "1=Game_Commencing") register_event("TextMsg", "nice_off_spec", "a", "2=#Game_will_restart_in"); nMaxplayers = register_cvar("max_players", "2")}public nice_off_spec() { nNumplayers = get_playersnum() if(nNumplayers >= get_pcvar_num(nMaxplayers)) { kick all spectators when there is >= 2 users on server :( Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi