Rules FAQ Members List Search Register Login

 Raised This Month: \$328 Target: \$400 82%   Almost there!

Solved [Help] Player selection

Author Message
Thew_ConFiger
Member
Join Date: Apr 2019
 01-21-2021 , 12:54   [Help] Player selection #1 solved Last edited by Thew_ConFiger; 03-27-2021 at 15:08.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
 01-21-2021 , 13:43   Re: [Help] Player selection #2 Code: ```new iPlayers[32], iPlayer[CsTeams], iPnum get_players(iPlayers, iNum, "ae", "CT") if(iPnum) {     iPlayer[CS_TEAM_CT] = iPlayers[random(iPnum)] } get_players(iPlayers, iNum, "ae", "TERRORIST") if(iPnum) {     iPlayer[CS_TEAM_T] = iPlayers[random(iPnum)] } // iPlayer[CS_TEAM_CT] is your random CT // iPlayer[CS_TEAM_T] is your random T ``` __________________ Last edited by OciXCrom; 01-21-2021 at 13:44.
Thew_ConFiger
Member
Join Date: Apr 2019
 01-21-2021 , 13:59   Re: [Help] Player selection #3 solved Last edited by Thew_ConFiger; 03-27-2021 at 15:08.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
 01-21-2021 , 14:55   Re: [Help] Player selection #4 Code: ```// iPlayer[CS_TEAM_CT] is your random CT // iPlayer[CS_TEAM_T] is your random T ``` Use these. __________________ Last edited by OciXCrom; 01-21-2021 at 14:55.
Thew_ConFiger
Member
Join Date: Apr 2019
 01-21-2021 , 15:44   Re: [Help] Player selection #5 solved Last edited by Thew_ConFiger; 03-27-2021 at 15:08.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
 01-21-2021 , 17:52   Re: [Help] Player selection #6 Your mistake is using "id" when I told you 2 times to use "iPlayer[CS_TEAM_CT]" and "iPlayer[CS_TEAM_T]". __________________
Thew_ConFiger
Member
Join Date: Apr 2019
 01-22-2021 , 01:40   Re: [Help] Player selection #7 solved Last edited by Thew_ConFiger; 03-27-2021 at 15:08.
Natsheh
Veteran Member
Join Date: Sep 2012
 01-22-2021 , 05:07   Re: [Help] Player selection #8 Because you need to replace if(iPnum) with if(iNum) __________________ @Jailbreak Main Mod v2.6.6 100% @User Tag Prefix 100% done ! @Mystery Box 100% done ! @VIP System 100% done !
Thew_ConFiger
Member
Join Date: Apr 2019
 01-22-2021 , 06:35   Re: [Help] Player selection #9 solved Last edited by Thew_ConFiger; 03-27-2021 at 15:08.
Natsheh
Veteran Member
Join Date: Sep 2012
 01-22-2021 , 06:38   Re: [Help] Player selection #10 seems like you have no idea about coding next time please post in suggestion request. PHP Code: ``` #include  #include #include #include #include #include public plugin_init() {    register_plugin("StarWars","1.0","Thew_ConFiger")    register_event("ResetHUD", "resetModel", "b")    register_logevent( "roundstart", 2, "1=Round_Start" );    }public roundstart( ){new iPlayers[32], iPlayer[CsTeams], iNumget_players(iPlayers, iNum, "ae", "CT")if(iNum){    iPlayer[CS_TEAM_CT] = iPlayers[random(iNum)]    set_user_health(iPlayer[CS_TEAM_CT], get_user_health(iPlayer[CS_TEAM_CT]) + 150);}get_players(iPlayers, iNum, "ae", "TERRORIST")if(iNum){    iPlayer[CS_TEAM_T] = iPlayers[random(iNum)]    set_user_health(iPlayer[CS_TEAM_T], get_user_health(iPlayer[CS_TEAM_T]) + 150);}}  ``` __________________ @Jailbreak Main Mod v2.6.6 100% @User Tag Prefix 100% done ! @Mystery Box 100% done ! @VIP System 100% done !

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Server Discussion     Source Servers (SRCDS)     HL1 Servers (HLDS) AMX Mod X     News     Bug Reports     General     Off-Topic     Plugins         Suggestions / Requests         Approved Plugins         New Plugin Submissions         Unapproved/Old Plugins         Translation Request         High-Traffic Plugins             GunGame             UAIO (Ultimate All-In-One Plugin)             xREDIRECT             CSDM             AMX Super             RuneMod             Zombie Plague Mod             SuperHero Mod                 News                 Tech Support                 Scripting Help                 Off-Topic / General Chat                 Heroes                     Suggestions / Requests                     Approved Heroes                     New Submissions                     Unapproved/Old Heroes                         Module Heroes                     SuperHero Mod Stats - By 123                 (OLD) Bug Reports     Scripting         Scripting Help         Code Snippets/Tutorials         Module Coding     Donor Access SourceMod     News     General     Plugins         Plugins         Unapproved Plugins         Plugin/Gameplay Ideas and Requests         High-Traffic Plugins             SourceMod Anti-Cheat             Zombie:Reloaded             SourceBans / SourceBans++             VSH / Freak Fortress             Store             SM_Hosties             HLstatsX:CE     Scripting     Extensions     Snippets and Tutorials     Donor Access     Metamod: Source         Metamod:Source Plugins         Metamod:Source Questions         Coding MM:S Plugins & SM Extensions Hosted Stuff     Asherkin's Plugins         TFDodgeball         TF2Items         SteamTools     Bail's Plugins         CSDM         CS:S DM Off-Topic & Trash     Off-Topic     Trash

All times are GMT -4. The time now is 04:02.

 DMCA - Archive - Top