Cerere plugin

Cereri de pluginuri noi, skinuri in CS, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Ro.aLyN
Membru, skill +1
Membru, skill +1
Posts: 193
Joined: 01 Jan 2010, 03:56
Detinator Steam: Da
CS Status: Connect ZM.HOSTPIXEL.RO
Detinator server CS: ZM.HOSTPIXEL.RO
SteamID: spryte4cs
Has thanked: 2 times
Been thanked: 3 times
Contact:

24 Jul 2012, 18:41

As dori si eu pluginul /spec , /cs si la aceste comenzi sa aibe acces doar adminii.
Hai la un Zombie MOD. Connect ZM.HOSTPIXEL.RO
Image
User avatar
Ro.aLyN
Membru, skill +1
Membru, skill +1
Posts: 193
Joined: 01 Jan 2010, 03:56
Detinator Steam: Da
CS Status: Connect ZM.HOSTPIXEL.RO
Detinator server CS: ZM.HOSTPIXEL.RO
SteamID: spryte4cs
Has thanked: 2 times
Been thanked: 3 times
Contact:

25 Jul 2012, 08:54

Va dau eu .SMA numai sa il modificati sa poata scrie /spec si /unspec doar adminii.
Hai la un Zombie MOD. Connect ZM.HOSTPIXEL.RO
Image
User avatar
Andrei.B
Fost administrator
Fost administrator
Posts: 6481
Joined: 17 Aug 2009, 08:15
Detinator Steam: Da
CS Status: Plecat pe mari si tari
Detinator server CS: Nu detin !
SteamID: andreybci94
Reputatie: Fost Membru Club eXtreamCS (o luna)
Fost Administrator
Nume anterior : bLack, Andrei,krusc
Contribuitor
Location: ConstanTa
Has thanked: 275 times
Been thanked: 556 times
Contact:

25 Jul 2012, 09:31

Incearca :
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define PLUGIN "Spec Switch"
#define VERSION "0.1.3"
#define AUTHOR "many"

new CsTeams:zTeam[33]
new zDeath[33]
new bool:type_spec[33] = false
new g_cvar

public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR)
   /* Cvar */
   g_cvar   = register_cvar("amx_specmode",   "0")    // 0 - enable use to all, 1 - enable use only ADMINs
   /* Client Commands */
   register_clcmd("say /spec",       "cmdSpec", ADMIN_ALL, "- go to spectator")
   register_clcmd("say_team /spec",    "cmdSpec", ADMIN_ALL, "- go to spectator")
   register_clcmd("say /back",       "cmdBack", ADMIN_ALL, "- go back to your team")
   register_clcmd("say_team /back",    "cmdBack", ADMIN_ALL, "- go back to your team")
}

public cmdSpec(id)
{
   if(!get_pcvar_num(g_cvar)) Spec(id)
   else if( get_pcvar_num(g_cvar) && (get_user_flags(id) & ADMIN_KICK)) Spec(id)
   else if( get_pcvar_num(g_cvar) && !(get_user_flags(id) & ADMIN_KICK)) PrintUserNotAdmin(id)
}

public cmdBack(id)
{
   if (type_spec[id] && cs_get_user_team(id) == CS_TEAM_SPECTATOR && zTeam[id] != CS_TEAM_SPECTATOR ) Back(id)
   else if( get_pcvar_num(g_cvar) && !(get_user_flags(id) & ADMIN_KICK) ) PrintUserNotAdmin(id)
}

public Spec(id)
{
   zDeath[id] = cs_get_user_deaths(id)
   if (cs_get_user_team(id) == CS_TEAM_SPECTATOR)
   return
   else{
      type_spec[id] = true
      zTeam[id] = cs_get_user_team(id)
      cs_set_user_team(id, CS_TEAM_SPECTATOR)
      user_silentkill(id)
      client_print(id,print_chat,"Type /back to return from Spectator")
   }
   return
}

public Back(id)
{
   cs_set_user_team(id, zTeam[id])
   cs_set_user_deaths(id, zDeath[id])
   set_task(0.5,"FirstRespawn",id)
   set_task(0.8,"SecondRespawn",id)
}

public FirstRespawn(id)
{
   cs_user_spawn(id)
}

public SecondRespawn(id)
{
   cs_user_spawn(id)
   if (cs_get_user_team(id) == CS_TEAM_T){
      give_item(id,"weapon_knife")
      give_item(id,"weapon_glock18")
      give_item(id,"ammo_9mm")
   }
   if (cs_get_user_team(id) == CS_TEAM_CT){
      give_item(id,"weapon_knife")
      give_item(id,"weapon_usp")
      give_item(id,"ammo_45acp")
      give_item(id,"ammo_45acp")
   }
}

PrintUserNotAdmin(id)
{
   client_print(id,print_chat,"Only Admins can use /spec, /back command")
}

public PrintRule(id)
{
   if ( is_user_connected(id) && !is_user_bot(id) && !is_user_hltv(id) ){
      client_print(id,print_chat,"Type /spec if you want to go Spectator")
      client_print(id,print_chat,"Type /back to return from Spectator")
   }
}

public client_putinserver(id)
{
   if(!get_pcvar_num(g_cvar)) Rule(id)
   else if( get_pcvar_num(g_cvar) && (get_user_flags(id) & ADMIN_KICK)) Rule(id)
}

public client_disconnect(id) type_spec[id] = false
public client_connect(id) type_spec[id] = false
public Rule(id) set_task(20.0, "PrintRule", id)

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n{\\ colortbl ;\\ red0\\ green0\\ blue0;}\n\\ viewkind4\\ uc1\\ pard\\ cf1\\ lang1033\\ b\\ f0\\ fs16 \n\\ par }
*/

Mereu in suflet culorile ( Roş -Albastru )
Image
ImageImage
User avatar
Ro.aLyN
Membru, skill +1
Membru, skill +1
Posts: 193
Joined: 01 Jan 2010, 03:56
Detinator Steam: Da
CS Status: Connect ZM.HOSTPIXEL.RO
Detinator server CS: ZM.HOSTPIXEL.RO
SteamID: spryte4cs
Has thanked: 2 times
Been thanked: 3 times
Contact:

25 Jul 2012, 10:37

E bun, de fiecare data cand ma bag spec, ma baga din nou a doua runda in echipa. De ce ?
Lista cu pluginuri ca poate o fi de la un plugin:

Code: Select all

advertisements.amxx
adminchat.amxx
allchat.amxx
admin_freelook.amxx
amx_destroy.amxx
amx_gag.amxx
team_join.amxx
spec.amxx
amx_ss.amxx
;bad_camper.amxx
amx_last.amxx
advanced_blind.amxx
ADV_BOTS2.amxx
multijump.amxx
semiclip.amxx
nademodes.amxx
HighPingMode.amxx
noflood.amxx
public_rules.amxx
LoadingMenu.amxx
multijump.amxx
NameReplacer.amxx
NoAdvertisements.amxx
new_admin-who.amxx
resetscore.amxx
connect_exec.amxx
show_ip.amxx
players_models.amxx
Hai la un Zombie MOD. Connect ZM.HOSTPIXEL.RO
Image
krystann
Membru eXtream
Membru eXtream
Posts: 2552
Joined: 16 May 2009, 10:37
Detinator Steam: Nu
CS Status: Vine criza!
Reputatie: Fost moderator
Has thanked: 321 times
Been thanked: 141 times

25 Jul 2012, 10:40

team_join.amxx - Nu cred ca incurca cu nimic
spec.amxx - Ce face mai exact ? Acesta este pluginul postat de black. ?
User avatar
Ro.aLyN
Membru, skill +1
Membru, skill +1
Posts: 193
Joined: 01 Jan 2010, 03:56
Detinator Steam: Da
CS Status: Connect ZM.HOSTPIXEL.RO
Detinator server CS: ZM.HOSTPIXEL.RO
SteamID: spryte4cs
Has thanked: 2 times
Been thanked: 3 times
Contact:

25 Jul 2012, 10:49

krystann wrote:spec.amxx - Ce face mai exact ? Acesta este pluginul postat de black. ?

Exact.
Hai la un Zombie MOD. Connect ZM.HOSTPIXEL.RO
Image
User avatar
Ro.aLyN
Membru, skill +1
Membru, skill +1
Posts: 193
Joined: 01 Jan 2010, 03:56
Detinator Steam: Da
CS Status: Connect ZM.HOSTPIXEL.RO
Detinator server CS: ZM.HOSTPIXEL.RO
SteamID: spryte4cs
Has thanked: 2 times
Been thanked: 3 times
Contact:

26 Jul 2012, 10:08

Se mai uita cineva ?
Hai la un Zombie MOD. Connect ZM.HOSTPIXEL.RO
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests