Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[CS:GO]Force Team Join (Player(CT)/BOT(T))


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 476
  • Lokalizacja:AMXX.PL
Offline

Napisano 12.04.2016 11:58

<div><font size="3">What it does?</font><br />- The plugin set player's team to Counter-Terrorist, Bot's team to Terrorist.<br />- If player trying to join Terrorist, player will be moved to Counter-Terrorist by force.<br /><br /><font size="3">Source Code</font><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">new Collision_Offsets;<br /><br />public OnPluginStart()<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; Collision_Offsets = FindSendPropInfo(&quot;CBaseEntity&quot;, &quot;m_CollisionGroup&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; HookEvent(&quot;player_spawn&quot;, PlayerSpawn);<br />}<br /><br />public Action:PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; new client = GetClientOfUserId(GetEventInt(event, &quot;userid&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; if(IsFakeClient(client) &amp;&amp; GetClientTeam(client) &gt; 1)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeClientTeam(client, 2);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CS_RespawnPlayer(client);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetEntData(client, Collision_Offsets, 2, 1, true);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; if(!IsFakeClient(client) &amp;&amp; GetClientTeam(client) == 2)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ChangeClientTeam(client, 3);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CS_RespawnPlayer(client);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetEntData(client, Collision_Offsets, 2, 1, true);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br /><br />}</code><hr />
</div></div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...14"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1460458700">GetSource</a> (btpct.sp - 949 Bytes)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...">btpct.smx</a>(4.3 KB)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych