Jump to content
View in the app

A better way to browse. Learn more.

Forum Supreme-Elite

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Creation] Simple "!spec" uniquement pour les CT

Featured Replies

"¢ Pseudo IG : Duracell

"¢ SteamID :STEAM_0:1:18687363

"¢ Lien vers topic de présentation : http://forum.supreme-elite.fr/topic/5914-duracellpro/

"¢ Nom de la team : [w]hite

"¢ URL du site/forum de la team : Aucun pour le moment

 

"¢ Description du plugin souhaité (détaillée a fond) : Bonjour,

 

Je viens faire une petite demande de plugin.

 

Simple "!spec" pour uniquement les anti-terroristes.

 

Commande sourcemod a executer : "sm_team <player> 1"

<player> = joueur qui tapera la commande

 

Conditions de fonctionnement :

 

- Si le joueur est uniquement en anti-terroristes

- Si le joueur est mort ou vivant

- Si le joueur est en jeu (pour éviter toutes sorte de bug)

 

Si le joueur est déjà specateur :

 

Lui envoyé un message dans le t'chat : Vous êtes déjà en specateur

 

 

Si le joueur est en terroristes :

 

- Vous ne pouvez pas allez en specateur

Execution d'une cmd : sm_msay <message>

<message> : Peut être uniquement du texte

 

Pour tous ce qui est message et cmd je pourrais m'en occupé du moment que sa fonctionne avec par exemple avec un message comme "test" et une cmd tel que "sm_msay test".

 

Merci

  • 2 weeks later...
  • 3 months later...

public Action:select_rt(Handle:timer) {

if (!GetConVarBool(_active) || !GetConVarBool(_rnd))

return Plugin_Continue;

 

new t_num = 1;

 

if (GetConVarInt(_rpnum) > 0)

t_num = GetConVarInt(_rpnum);

else

t_num = GetTeamClientCount(CS_TEAM_CT) / 2;

 

for (new i = 1; i <= MaxClients; i++) {

if (IsClientInGame(i) && GetClientTeam(i) == CS_TEAM_T) CS_SwitchTeam(i, CS_TEAM_CT);

}

 

new t = GetRandomPlayer();

for (new i = 1; i <= t_num; i++) {

if (t != -1) {

CS_SwitchTeam(t, CS_TEAM_T);

SetEntProp(t, Prop_Data, "m_takedamage", 0, 1);

PrintToChatAll("\x04%t \x01>\x03 %t", "deathrun", "player go to terrorists", t);

t = GetRandomPlayer();

}

} else PrintToChatAll("\x04%t \x01>\x03 %t", "deathrun", "not people for random terrorist");

return Plugin_Continue;

}

 

 

Met ca a la place de celle actuelle. Et dit moi si tu as bien plusieurs terro en fonction de la cvar sm_deathrun_randplayers. N'oublie pas qu'elle est a 1 par défaut ;) (donc change la si tu as besoin).

  • Author

Merci mes probleme a la compile:

 

<296> : error 029: invalid expression, assumed zero

 

La ligne : } else PrintToChatAll("\x04%t \x01>\x03 %t", "deathrun", "not people for random terrorist");

Normal, petit fail de ma part

 

for (new i = 1; i <= t_num; i++) {

if (t != -1) {

CS_SwitchTeam(t, CS_TEAM_T);

SetEntProp(t, Prop_Data, "m_takedamage", 0, 1);

PrintToChatAll("\x04%t \x01>\x03 %t", "deathrun", "player go to terrorists", t);

t = GetRandomPlayer();

} else PrintToChatAll("\x04%t \x01>\x03 %t", "deathrun", "not people for random terrorist");

}

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.