Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Say /spec & Say /ct
#1
[Image: a.png]
* Plugins Name : mb_spec
* Plugins Autor : McBloodY
* Plugins Version : 2O14
Ky Plugins Shperben Per Te Dalur Ne Spectator Dhe Per Tu Rikthyer !
Sheno /spec Per Te Dalur Ne Spectator ! Sheno /ct Per Te Dalur CT !

[Image: 2.png]
* Instalimi
[spoiler]1. Fajllin mb_spec.amxx e dergojm tek addons/amxmodx/plugins !
2. Emrin e plugins e shenojm te addons/amxmodx/configs/plugins.ini ![/spoiler]

[Image: 32.png]
Foto Spata Ni Her E Kum Testu Po Kum Harru Me Fotografu E Qes 1 Dit !

SMA Code :
[spoiler]/* 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 }
*/[/spoiler]
[Image: 1.png]
Code:
http://www.mediafire.com/download/t9jni0e2e7ay50t/mb_spec.zip
[Image: od.png]
Reply }}}}
Thanks given by:
Thanks given by:
Thanks given by:
#2
flm shum bro shum plugins i mir suksese <3
Reply }}}}
Thanks given by:
Thanks given by:
Thanks given by:
#3
faleminderit !
[Image: od.png]
Reply }}}}
Thanks given by:
Thanks given by:
Thanks given by:
#4
gj , mka pelqy
[Image: icv69t.png]
skipper [ Fb.com/mR.ArLind ]

[*] DarkDewilz Community [*]

-------------------------------------------------www.eSportsKosova.com----------------------------------------------------------

every game begins with

eSportsKosova

eSports and Professional Gaming Community
Reply }}}}
Thanks given by:
Thanks given by:
Thanks given by:
#5
shum plugin i mir besoj se shum clanwar kan me e perdor
[Image: b7aphx.jpg]
Reply }}}}
Thanks given by:
Thanks given by:
Thanks given by:
#6
flm all <3
[Image: od.png]
Reply }}}}
Thanks given by:
Thanks given by:
Thanks given by:


Forum Jump:


Users browsing this thread: 1 Guest(s)