Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Cerere PLUGINS raspundeti
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
1262
Mielu <3 Freakz
[Mentally Stable]
Status: Offline
(since 22-10-2013 19:58)
Joined: 27 May 2013
Posts: 3
,
Topics: 3
Location:
Romania
Reputation:
53.1
Votes
: 2
Posted: 27-05-2013, 15:49:52
| Translate post to:
... (
Click for more languages
)
Vreau si eu un plugin care sa faca la meniu la terorist asa
FREERUN
INVIZIBIL
VICTIMA
ALBA CA ZAPADA
SNIPER
------------------
Si explicati cum pun in addons
Multumesc Freakz !
0
0
Back to top
Happy =]]
[I'm in your mind !]
Status: Offline
(since 02-05-2020 11:17)
Joined: 17 Mar 2012
Posts: 10538
,
Topics: 450
Location:
In mintea ta !
Reputation:
553
Votes
: 204
Posted: 27-05-2013, 16:03:39
| Translate post to:
... (
Click for more languages
)
Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#pragma semicolon 1
#define RED 0
#define GREEN 255
#define BLUE 255
#define HE 30 // Cate HEgrenade sa primeasca tero la optiunea alba ca zapada
#define FLASH 50 // Cate flashuri sa primeasca tero la optiunea alba ca zapada
#define TIME 7 // Dupa cat timp sa dispara meniul
#define TASKID 2000
#define KEYS ((1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<9))
#define PLUGIN "DeathRun Terro Menu"
#define VERSION "1.2"
#define AUTHOR "Vicious Vixen"
// #define BLOCK_FALLDAMAGE
const DMG_HEGRENADE = (1<<24);
new const PREFIX[] = "IlogicGroup";
new g_Timer;
new bool: UserIsInvisible[33];
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_TakeDamage, "player", "OnCBasePlayer_TakeDamage");
RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn", 1);
}
public fw_PlayerSpawn(id)
{
client_cmd(id, "cl_backspeed 400");
client_cmd(id, "cl_forwardspeed 400");
client_cmd(id, "cl_sidespeed 400");
if(UserIsInvisible[id])
{
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0);
UserIsInvisible[id] = false;
}
if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T )
{
MenuFunction(id);
}
return HAM_IGNORED;
}
public MenuFunction(id)
{
if( !task_exists(TASKID) )
{
g_Timer = TIME; // set the timer value to start at here
set_task( 1.0, "TaskFunction", TASKID, _, _, "b" );
}
new szMenu[33];
formatex( szMenu, charsmax(szMenu), "Menu Timer: %i", g_Timer );
new menu = menu_create( szMenu, "menu_handler" );
menu_additem( menu, "\r1.\w Free Run", "1", 0 );
menu_additem( menu, "\r2.\w Invizibilitate", "2", 0 );
menu_additem( menu, "\r3.\w Victima", "3", 0 );
menu_additem( menu, "\r4.\w Alba ca Zapada", "4", 0 );
menu_additem( menu, "\r5.\w Sniper", "5", 0 );
menu_additem( menu, "\r6.\w Grenazi", "6", 0 );
menu_display( id, menu, 0 );
menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );
}
public menu_handler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy( menu );
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo( menu, item, access, data, 6, iName, 63, callback );
new key = str_to_num( data );
switch( key )
{
case 1:
{
freerun(id);
}
case 2:
{
invizibilitate(id);
}
case 3:
{
Victima(id);
}
case 4:
{
alba_ca_zapada(id);
}
case 5:
{
sniper(id);
}
case 6:
{
grenazi(id);
}
}
return PLUGIN_HANDLED;
}
public freerun(id)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
ColorChat(id, "^x01[^x04 %s^x01 ]^x03 Ai lasat jocul^x04 Free Run,^x03 primul^x04 CT^x03 care ajunge la tine trebuie sa iti dea^x04 arma!",PREFIX);
client_cmd(id,"say /free");
new name[32];
get_user_name(id,name,31);
set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
show_hudmessage(0, "%s a lasat jocul Free Run, Primul CT care ajunge, ii va da arma!!",name);
}
remove_task(TASKID);
}
public invizibilitate(id)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
server_cmd("deathrun_mode ^"INVIS^"");
ColorChat(id, "^x01[^x04 %s^x01 ]^x03 Acum esti total^x03 invizibil!",PREFIX);
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0);
UserIsInvisible[id] = true;
new name[32];
get_user_name(id,name,31);
set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
show_hudmessage(0, "%s este acum invizibil !!",name);
}
remove_task(TASKID);
}
public Victima(id)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
ColorChat(id, "^x01[^x04 %s^x01 ]^x03 Esti o^x04 victima^x03 acuma!",PREFIX);
set_user_health(id, 10000);
new name[32];
get_user_name(id,name,31);
set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
show_hudmessage(0, "%s a primit 1000 HP iar echipa CT AWP, deoarece a ales modul VICTIMA !",name);
}
if(cs_get_user_team(id) == CS_TEAM_CT)
{
give_item(0, "weapon_awp");
cs_set_user_bpammo(0 , CSW_AWP, 35);
set_user_health(0, 100);
}
remove_task(TASKID);
}
public alba_ca_zapada(id)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
ColorChat(id, "^x01[^x04 %s^x01 ]^x03 ai primit^x04 %d^x03 de^x04 Flashbang!",PREFIX, FLASH);
give_item(id, "weapon_flashbang");
cs_set_user_bpammo(id , CSW_FLASHBANG, HE);
new name[32];
get_user_name(id,name,31);
set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
show_hudmessage(0, "%s a primit %d de Flashbang!",name,FLASH);
}
remove_task(TASKID);
}
public sniper(id)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
new name[32];
get_user_name(id,name,31);
set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
show_hudmessage(0, "%s are un AWP cu 35 gloante. Echipa CT a primit cate un DEAGLE !!",name);
ColorChat(id, "^x01[^x04 %s^x01 ]^x03 Ai primit un^x04 AWP^x03 cu^x04 35^x03 gloante !",PREFIX);
give_item(id, "weapon_awp");
cs_set_user_bpammo(id , CSW_AWP, 35);
}
if(cs_get_user_team(id) == CS_TEAM_CT)
{
give_item(0, "weapon_deagle");
give_item(0, "item_assaultsuit");
cs_set_user_bpammo(0 , CSW_DEAGLE, 35);
}
remove_task(TASKID);
}
public grenazi(id)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
new name[32];
get_user_name(id,name,31);
set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
show_hudmessage(0, "%s a primit %d de HE !",name,HE);
ColorChat(id, "^x01[^x04 %s^x01 ]^x03 Ai primit^x04 %d^x03 de^x04 HE !", PREFIX, HE);
give_item(id, "weapon_hegrenade");
cs_set_user_bpammo(id,CSW_HEGRENADE,HE);
}
remove_task(TASKID);
}
public TaskFunction()
{
g_Timer-- ;
new iPlayers[32], iNum, id;
get_players( iPlayers, iNum );
for( new i = 0; i < iNum; i++ )
{
id = iPlayers[i];
MenuFunction(id);
}
if( g_Timer <= 0 )
{
ColorChat(id, "^x01[^x04 %s^x01 ]^x03 Timpul sa scurs! Data viitoare alege mai repede!", PREFIX );
g_Timer = 0;
for( new i = 0; i < iNum; i++ )
{
id = iPlayers[i];
menu_cancel(id);
remove_task(TASKID);
}
}
}
stock ColorChat(const id, const intrare[], any:...) {
new numar = 1, jucatori[32];
static mesaj[191];
vformat(mesaj, 190, intrare, 3);
replace_all(mesaj, 190, "!v", "^x04"); /* culoarea verde */
replace_all(mesaj, 190, "!c", "^x01"); /* culoarea chatului */
replace_all(mesaj, 190, "!e", "^x03"); /* culoarea echipei ct = albastru | tero = rosie */
replace_all(mesaj, 190, "!e2", "^x00"); /* culoarea normala a echipei */
if(id)
jucatori[0] = id;
else
get_players(jucatori, numar, "ch");
for(new i = 0; i < numar; i++) {
if(is_user_connected(jucatori[i])) {
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, jucatori[i]);
write_byte(jucatori[i]);
write_string(mesaj);
message_end();
}
}
}
public OnCBasePlayer_TakeDamage( id, iInflictor, iAttacker, Float:flDamage, bitsDamageType ) // return int
{
#if defined BLOCK_FALLDAMAGE
if( bitsDamageType & DMG_FALL || (bitsDamageType & DMG_HEGRENADE && id == iAttacker && cs_get_user_team(id) == CS_TEAM_T))
#else
if( bitsDamageType & DMG_HEGRENADE && id == iAttacker && cs_get_user_team(id) == CS_TEAM_T )
#endif
{
SetHamReturnInteger(0);
return HAM_SUPERCEDE;
}
return HAM_IGNORED;
}
Intri
aici
.
Copiezi ce este mai sus.
Ii pui in nume.
Dai complie.
Descarci plugin-ul.
Il pui in "amxmodx -> plugins".
Dupa mergi in "Config -> plugins.ini" si terci la sfarsit "nume plugin.amxx" .
Pentru orice problema PM.
Nu ofer asistenta in privat.
0
0
Back to top
Mescalina
[Mentally Stable]
Status: Offline
(since 02-07-2013 23:17)
Joined: 07 Jun 2013
Posts: 16
,
Topics: 4
Location:
Romania
Reputation:
35.6
Votes
: 1
Posted: 28-06-2013, 12:29:58
| Translate post to:
... (
Click for more languages
)
Unde pot modifica sa primeasca CT'u?
0
0
Back to top
h3r01n4
[Account disabled]
Status: Offline
(since 30-06-2014 18:55)
Joined: 17 Apr 2013
Posts: 122
,
Topics: 67
Location:
Romania
Reputation:
-46.5
Votes
: 8
Posted: 28-06-2013, 18:41:40
| Translate post to:
... (
Click for more languages
)
Nu mere la CT
0
0
Back to top
Happy =]]
[I'm in your mind !]
Status: Offline
(since 02-05-2020 11:17)
Joined: 17 Mar 2012
Posts: 10538
,
Topics: 450
Location:
In mintea ta !
Reputation:
553
Votes
: 204
Posted: 14-07-2013, 13:20:09
| Translate post to:
... (
Click for more languages
)
Unde aparae "CS_TEAM_T" pui "CS_TEAM_CT"
Pentru orice problema PM.
Nu ofer asistenta in privat.
0
0
Back to top
anaconda cs
[Banned user]
Status: Offline
(since 26-12-2013 22:11)
Joined: 11 Jan 2013
Posts: 788
,
Topics: 55
Location:
United States
Reputation:
61.4
Votes
: 23
Posted: 17-07-2013, 18:45:47
| Translate post to:
... (
Click for more languages
)
e luat de pe ig
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 17-12-2024, 06:05:58
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details