It is currently 16 Dec 2018 12:27



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 5 posts ] 
 /help baze builder 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 10 Nov 2018 11:47
Posts: 16
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
atunti cand playeri scriu in chat /help sa apara un cerc care se tot indeparteaza si sa scrie in chat playeru cutare are nevoie de ajutor


24 Nov 2018 17:32
Profile multumesc WWW
Online
Super moderator
Super moderator
User avatar

Joined: 10 Jul 2013 20:26
Posts: 2112
Location: Constanta
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 0
Doar asta am găsit, sper că e ok.
| Afiseaza codul
#include <amxmodx> 
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <cstrike>
#include <basebuilder>

#define SPRITE "sprites/white.spr"
#define HELPSOUND "misc/bb_help.wav"

new bool:valuri
new sprite_white;

public plugin_init() {
register_plugin("Help System","1.0","MAGNET")
register_event("HLTV", "rundanoua", "a", "1=0", "2=0");
register_clcmd("say /ajutor", "ajutor")
register_clcmd("say /help", "ajutor")
}


public plugin_precache()
{
sprite_white = precache_model(SPRITE);
precache_sound(HELPSOUND)

}
public bb_prepphase_started()
{
valuri = true
}

public bb_round_started()
{
valuri = false;
}

public rundanoua()
{
valuri = false;
}


public ajutor(id)
{

new nick[33];
get_user_name(id, nick, charsmax(nick));

if(!is_user_alive(id))
return PLUGIN_HANDLED;

if(cs_get_user_team(id) != CS_TEAM_CT)
{
ColorChat(id,"^3Trebuie sa fii om, pentru a folosi aceasta comanda!")
return PLUGIN_HANDLED;
}

if(!valuri)
{
ColorChat(id,"^3Lipirea nu se poate inca realiza napule")
return PLUGIN_HANDLED;
}

for(new i = 0;i<32;i++)
{
if(!is_user_connected(i) || !(get_user_flags(i) & ADMIN_BAN)) continue;
ColorChat(i,"[Help System]^4 Jucatorul ^3 %s ^1 are nevoie de ajutor", nick[id])
client_cmd(i, "spk misc/bb_help.wav")
}
set_task(1.0, "Info", id+32, _, _, "b");

return PLUGIN_CONTINUE;
}



public Info(id)
{
id-=32;

if(!is_user_alive(id) || !valuri || cs_get_user_team(id) != CS_TEAM_CT)
{
remove_task(id+32);
return;
}

emit_sound(id, CHAN_AUTO, HELPSOUND, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
new Float:forigin[3];
entity_get_vector(id, EV_VEC_origin, forigin);

new iOrigin[3];
for(new i=0;i<3;i++)
iOrigin[i] = floatround(forigin[i]);

message_begin( MSG_BROADCAST, SVC_TEMPENTITY, iOrigin );
write_byte( TE_BEAMCYLINDER );
write_coord( iOrigin[0] );
write_coord( iOrigin[1] );
write_coord( iOrigin[2] );
write_coord( iOrigin[0] );
write_coord( iOrigin[1] + 300 );
write_coord( iOrigin[2] + 300 );
write_short( sprite_white );
write_byte( 0 ); // startframe
write_byte( 0 ); // framerate
write_byte( 10 ); // life
write_byte( 10 ); // width
write_byte( 255 ); // noise
write_byte( 255 ); // r, g, b
write_byte( 100 );// r, g, b
write_byte( 100 ); // r, g, b
write_byte( 128 ); // brightness
write_byte( 0 ); // speed
message_end();

}


stock ColorChat(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "^x04", "^4");
replace_all(msg, 190, "^x01", "^1");
replace_all(msg, 190, "^x03", "^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();
}
}
}
}


Link de unde l-am găsit: Link extern

_________________
Țepe date | Afiseaza codul
Ce-oi vrea să vezi?


24 Nov 2018 18:39
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 10 Nov 2018 11:47
Posts: 16
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
eroare la copilare cannot read from file basebuilder


28 Nov 2018 21:01
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 10 Nov 2018 11:47
Posts: 16
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
am incercat orice


28 Nov 2018 21:02
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 14 Sep 2018 22:35
Posts: 44
Location: Timisoara
Detinator Steam: Da
CS Status: Sniper & Rifler
SteamID: /id/nutu_gl
Fond eXtream: 0
iti trebuie basebuilder.inc

_________________
a simple act of caring creates an endless ripple.
https://www.old-zone.ro/forum


30 Nov 2018 13:05
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: floringold01, Madalyn, Mr.RobertMarian and 75 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group