Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[rezolvat]Cerere Plugin
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
864
AppLyy
[Mentally Stable]
Status: Offline
(since 20-04-2015 19:54)
Joined: 04 Apr 2015
Posts: 10
,
Topics: 4
Location:
Romania
Reputation:
32.3
Votes
: 1
Posted: 08-04-2015, 14:33:51
| Translate post to:
... (
Click for more languages
)
Salutare vreau si eu un plugin cu cateva eventuri activate printr-o comanda pentru un sv classic funny
Eventuri:
amx_event1 -> sa dea la toate echipele no-clip. (si un mesaj cand activezi eventul in mistloc Event No-Clip Activat !)
amx_event2 -> sa dea la toate echipele speed (Event Speed Activat)
amx_event3 -> sa dea la toate echipele viata 500 (Event Survivor Activat)
Daca cer prea mult sa mi se spuna
0
0
Back to top
destroi112
[DEV]
Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042
,
Topics: 119
Location:
---------
Reputation:
515.9
Votes
: 118
Posted: 08-04-2015, 16:00:31
| Translate post to:
... (
Click for more languages
)
Prin mistloc te referi la mijloc? sau la ce^_^?
Here:
Spoiler:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#pragma tabsize 0
#define ADMIN_EVENT ADMIN_RCON
new event_speed,event_hp
public plugin_init()
{
register_plugin("Event", "1.0", "D3luxe")
register_concmd("amx_event1", "NoClip", ADMIN_EVENT);
register_concmd("amx_event2", "Speed", ADMIN_EVENT);
register_concmd("amx_event3", "Viata", ADMIN_EVENT);
event_speed = register_cvar("fun_event_speed","700")
event_hp = register_cvar("fun_event_hp","500")
}
public NoClip(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
set_user_noclip(0,1)
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul No-Clip",namea)
return PLUGIN_HANDLED;
}
public Speed(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
set_user_maxspeed(0,get_pcvar_float(event_speed))
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul Speed.",namea)
return PLUGIN_HANDLED;
}
public Viata(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
set_user_health(0,get_pcvar_num(event_hp))
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul Survivor",namea)
return PLUGIN_HANDLED;
}
stock ChatColor(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!team", "^3")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Imi spui daca e ce ai vrut tu.
Retired from Amxmodx
0
0
Back to top
AppLyy
[Mentally Stable]
Status: Offline
(since 20-04-2015 19:54)
Joined: 04 Apr 2015
Posts: 10
,
Topics: 4
Location:
Romania
Reputation:
32.3
Votes
: 1
Posted: 08-04-2015, 18:15:10
| Translate post to:
... (
Click for more languages
)
Imi da eroare asta
Spoiler:
04/08/2015 - 19:13:36: [FUN] Player out of range (0)
04/08/2015 - 19:13:36: [AMXX] Run time error 10 (plugin "event.amxx") (native "set_user_noclip") - debug not enabled!
04/08/2015 - 19:13:36: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
109.96.64.228:54888:reconnect
04/08/2015 - 19:13:41: [FUN] Player out of range (0)
04/08/2015 - 19:13:41: [AMXX] Run time error 10 (plugin "event.amxx") (native "set_user_maxspeed") - debug not enabled!
04/08/2015 - 19:13:41: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
04/08/2015 - 19:13:45: [FUN] Player out of range (0)
04/08/2015 - 19:13:45: [AMXX] Run time error 10 (plugin "event.amxx") (native "set_user_health") - debug not enabled!
04/08/2015 - 19:13:45: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Dropped KidZor from server
Reason: Client sent 'drop'
AppLy. 0
Hostname Conn
si nu merge ...
0
0
Back to top
destroi112
[DEV]
Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042
,
Topics: 119
Location:
---------
Reputation:
515.9
Votes
: 118
Posted: 08-04-2015, 18:22:54
| Translate post to:
... (
Click for more languages
)
Vezi asa.
Spoiler:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#pragma tabsize 0
#define ADMIN_EVENT ADMIN_RCON
new event_speed,event_hp
public plugin_init()
{
register_plugin("Event", "1.0", "D3luxe")
register_concmd("amx_event1", "NoClip", ADMIN_EVENT);
register_concmd("amx_event2", "Speed", ADMIN_EVENT);
register_concmd("amx_event3", "Viata", ADMIN_EVENT);
event_speed = register_cvar("fun_event_speed","700")
event_hp = register_cvar("fun_event_hp","500")
}
public NoClip(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
for(new players = 1;players >= get_maxplayers();players ++)
set_user_noclip(players,1)
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul No-Clip",namea)
return PLUGIN_HANDLED;
}
public Speed(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
for(new players = 1;players >= get_maxplayers();players ++)
set_user_maxspeed(players,get_pcvar_float(event_speed))
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul Speed.",namea)
return PLUGIN_HANDLED;
}
public Viata(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
for(new players = 1;players >= get_maxplayers();players ++)
set_user_health(players,get_pcvar_num(event_hp))
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul Survivor",namea)
return PLUGIN_HANDLED;
}
stock ChatColor(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!team", "^3")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Retired from Amxmodx
0
0
Back to top
AppLyy
[Mentally Stable]
Status: Offline
(since 20-04-2015 19:54)
Joined: 04 Apr 2015
Posts: 10
,
Topics: 4
Location:
Romania
Reputation:
32.3
Votes
: 1
Posted: 08-04-2015, 18:59:15
| Translate post to:
... (
Click for more languages
)
merge dar cand scrie amx_event1/2/3 scrie ca am pornit eventul dar nu da la nimeni speed / no clip sau /hp
0
0
Back to top
destroi112
[DEV]
Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042
,
Topics: 119
Location:
---------
Reputation:
515.9
Votes
: 118
Posted: 08-04-2015, 19:56:01
| Translate post to:
... (
Click for more languages
)
Stiu scuze am gresit eu un semn
uite aici
Spoiler:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#pragma tabsize 0
#define ADMIN_EVENT ADMIN_RCON
new event_speed,event_hp
public plugin_init()
{
register_plugin("Event", "1.0", "D3luxe")
register_concmd("amx_event1", "NoClip", ADMIN_EVENT);
register_concmd("amx_event2", "Speed", ADMIN_EVENT);
register_concmd("amx_event3", "Viata", ADMIN_EVENT);
event_speed = register_cvar("fun_event_speed","700")
event_hp = register_cvar("fun_event_hp","500")
}
public NoClip(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
for(new players = 1;players <= get_maxplayers();players ++)
set_user_noclip(players,1)
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul No-Clip",namea)
return PLUGIN_HANDLED;
}
public Speed(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
for(new players = 1;players <= get_maxplayers();players ++)
set_user_maxspeed(players,get_pcvar_float(event_speed))
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul Speed.",namea)
return PLUGIN_HANDLED;
}
public Viata(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
for(new players = 1;players <= get_maxplayers();players ++)
set_user_health(players,get_pcvar_num(event_hp))
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul Survivor",namea)
return PLUGIN_HANDLED;
}
stock ChatColor(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!team", "^3")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Retired from Amxmodx
0
0
Back to top
AppLyy
[Mentally Stable]
Status: Offline
(since 20-04-2015 19:54)
Joined: 04 Apr 2015
Posts: 10
,
Topics: 4
Location:
Romania
Reputation:
32.3
Votes
: 1
Posted: 10-04-2015, 12:04:54
| Translate post to:
... (
Click for more languages
)
Acum nu mai apar mesajele cand il activezi -_-
0
0
Back to top
natvro
[Banned user]
Status: Offline
(since 21-04-2015 09:02)
Joined: 11 Apr 2015
Posts: 45
,
Topics: 9
Location:
Romania
Reputation:
30.2
Votes
: 33
Posted: 13-04-2015, 21:27:12
| Translate post to:
... (
Click for more languages
)
Pui dupa acel mesaj :
}else{
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya inchis !teamEventul No-Clip",namea)
} de exemplu
0
0
Back to top
destroi112
[DEV]
Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042
,
Topics: 119
Location:
---------
Reputation:
515.9
Votes
: 118
Posted: 17-04-2015, 14:18:27
| Translate post to:
... (
Click for more languages
)
Poftim acum ar trebuie sa iti mearga tot corect am facut si unblock si merge doar 1 event baga nu toate (ele se anuleaza intre ele).
Poftim.
Spoiler:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <fakemeta>
#pragma tabsize 0
#define ADMIN_EVENT ADMIN_RCON
#define GetPlayerHullSize(%1) ( ( pev ( %1, pev_flags ) & FL_DUCKING ) ? HULL_HEAD : HULL_HUMAN )
enum Coord_e { Float:x, Float:y, Float:z };
new event_speed,event_hp
new Event1,Event2,Event3
public plugin_init()
{
register_plugin("Event", "1.0", "D3luxe")
register_concmd("amx_event1", "NoClip", ADMIN_EVENT);
register_concmd("amx_event2", "Speed", ADMIN_EVENT);
register_concmd("amx_event3", "Viata", ADMIN_EVENT);
register_logevent("RoundEnd", 2, "1=Round_End");
event_speed = register_cvar("fun_event_speed","700")
event_hp = register_cvar("fun_event_hp","500")
}
public RoundEnd()
{
Event1 = false;
Event2 = false;
Event3 = false;
set_task(0.1,"reset_all",0)
}
public reset_all(id)
{
set_user_noclip(id,0)
Deblocheaza(id)
set_user_maxspeed(id,400.0)
set_user_health(id,100)
}
public NoClip(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
Event1 = true;
Event2 = false;
Event3 = false;
set_task(0.2,"Evenimente",0)
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul No-Clip",namea)
return PLUGIN_HANDLED;
}
public Speed(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
Event1 = false;
Event2 = true;
Event3 = false;
set_task(0.2,"Evenimente",0)
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul Speed.",namea)
return PLUGIN_HANDLED;
}
public Viata(id, level, cid)
{
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED;
new namea[32]
get_user_name(id,namea,31)
Event1 = false;
Event2 = false;
Event3 = true;
set_task(0.2,"Evenimente",0)
ChatColor(0,"!g[AMXX]!yADMINUL !team%s !ya pornit !teamEventul Survivor",namea)
return PLUGIN_HANDLED;
}
public Evenimente()
{
new iPlayers[32], iNum;
get_players(iPlayers, iNum)
for (new i = 0; i < iNum; i++)
{
if(Event1)
{
set_user_noclip(iPlayers[i],1)
set_user_maxspeed(iPlayers[i],400.0)
set_user_health(iPlayers[i],100)
}else if(Event2){
set_user_maxspeed(iPlayers[i],get_pcvar_float(event_speed))
set_user_noclip(iPlayers[i],0)
Deblocheaza(iPlayers[i])
set_user_health(iPlayers[i],100)
}else if(Event3){
set_user_health(iPlayers[i],get_pcvar_num(event_hp))
set_user_noclip(iPlayers[i],0)
Deblocheaza(iPlayers[i])
set_user_maxspeed(iPlayers[i],400.0)
}
}
}
//deblocheaza cand e noclip off
public Deblocheaza( const id ) {
new i_Value;
if ( ( i_Value = UnBlock ( id, 32, 128 ) ) != 1 )
{
switch ( i_Value )
{
case 0 : client_print ( id, print_chat, "Te-ai blocat,asteapta cateva secunde pentru a te debloca...!" );
case -1 : client_print ( id, print_console, "..." );
}
}
return PLUGIN_CONTINUE;
}
UnBlock ( const id, const i_StartDistance, const i_MaxAttempts ) {
// --| Not alive, ignore.
if ( !is_user_alive ( id ) ) return -1
static Float:vf_OriginalOrigin[ Coord_e ], Float:vf_NewOrigin[ Coord_e ];
static i_Attempts, i_Distance;
// --| Get the current player's origin.
pev ( id, pev_origin, vf_OriginalOrigin );
i_Distance = i_StartDistance;
while ( i_Distance < 1000 )
{
i_Attempts = i_MaxAttempts;
while ( i_Attempts-- )
{
vf_NewOrigin[ x ] = random_float ( vf_OriginalOrigin[ x ] - i_Distance, vf_OriginalOrigin[ x ] + i_Distance );
vf_NewOrigin[ y ] = random_float ( vf_OriginalOrigin[ y ] - i_Distance, vf_OriginalOrigin[ y ] + i_Distance );
vf_NewOrigin[ z ] = random_float ( vf_OriginalOrigin[ z ] - i_Distance, vf_OriginalOrigin[ z ] + i_Distance );
engfunc ( EngFunc_TraceHull, vf_NewOrigin, vf_NewOrigin, DONT_IGNORE_MONSTERS, GetPlayerHullSize ( id ), id, 0 );
// --| Free space found.
if ( get_tr2 ( 0, TR_InOpen ) && !get_tr2 ( 0, TR_AllSolid ) && !get_tr2 ( 0, TR_StartSolid ) )
{
// --| Set the new origin .
engfunc ( EngFunc_SetOrigin, id, vf_NewOrigin );
return 1;
}
}
i_Distance += i_StartDistance;
}
// --| Could not be found.
return 0;
}
//stock
stock ChatColor(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!team", "^3")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Am fost plecat si na...
Retired from Amxmodx
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
TwisTer
, 22 May 2015 15:25
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 30-07-2025, 03:44:08
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