Nume utilizator:   Parolă:    

Anunt



Bun venit pe UltraMania.Ro
x

Bine ati venit pe UltraMania.Ro, pentru a putea vedea intreg continutul de pe acest forum, v-a trebui sa va creati un cont. Inregistreaza-te gratuit, acum !

Scrie un subiect nou Răspunde la subiect  Pagina 1 din 1
[ View Topic Options ]
 
[ ‹‹ | ›› ]
Autor 
(Neconectat)

Mesajde kinder » Lun Ian 23, 2012 2:28 pm

Membru
Status: Neconectat
Membru din: Lun Ian 23, 2012 2:01 pm
Mesaje: 2
Detinator: Nu
Cunostinte CS: excelente
Harta Preferata: fy_snow
Salut as vrea si eu daca se poate sa imi modificati si mie aceste pluginuri...
Ultimate_who.sma
Mesagges_Shower.sma
Preturi_ranguri.sma si HTML
---------------------------------------------------------------------------------------
1) Cand scriu admin sau admins imi apare poza cu motd ...as vrea sa mearga dk cu "/" exp:admin sau /admin si as mai vrea daca se poate sa imi faceti si mie pluginu ultimate_who.sma sa arate asa Imagine cu culorile astea. [ultimate_who.sma]

Cod:
#include <amxmodx>

#include <amxmisc>

#define PLUGIN "ULTIMATE Who"
#define VERSION "1.0"
#define AUTHOR "P.Of.Pw"

#define CharsMax(%1) sizeof %1 - 1
#define time_shower 1.0

#define GROUPS_NAME 7
#define GROUPS_ACCESS 7

#define RRR 255
#define GGG 255
#define BBB 255
#define time_hud 12.0

#define motd_msg "Admini Online CS.ULTRAMANIA.RO"
#define who_meniu_ad_group_msg "y-=[Admin's]=- r-=[Online]=-^n"
#define who_meniu_admin_msg "y-=[Admin's]=- w-=[Online]=-^n^n"
#define who_console_top "-----==========> [Admini Online CS.ULTRAMANIA.RO] <============----"
#define who_console_bottom "******************>Admini Online
CS.ULTRAMANIA.RO<*****************"

new GroupNames[GROUPS_NAME][] = {
"..::Creatori Serverului::..",
"..::Owner::..",
"..::GooD's::..",
"..::Moderator::..",
"..::Administrator::..",
"..::Helper::..",
"..::SloT::.."
}

new GroupFlags[GROUPS_ACCESS][] = {
"abcdefghijklmnopqrstu",
"bcdefghijkmnopqrstu",
"bcdefijmnopstu",
"bcdefijmnstu",
"bcdefi",
"bsafd",
"b"
}

new GroupFlagsValue[GROUPS_NAME]

new who_type, who_typemeniu

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR)

for(new p_of_pw = 0 ; p_of_pw < GROUPS_NAME ; p_of_pw++)
GroupFlagsValue[p_of_pw] = read_flags(GroupFlags[p_of_pw])

register_clcmd("say", "cmdSay")
register_clcmd("say_team", "cmdSay")

who_type = register_cvar("cmd_who","1")
who_typemeniu = register_cvar("who_typemeniu","1")
}

public cmdSay(id)
{
new say[192]
read_args(say,192)
if(( containi(say, "who") != -1 || containi(say, "admin") != -1 || containi(say, "admins") != -1 || contain(say, "/who") != -1 || contain(say, "/admin") != -1 || contain(say, "/admins") != -1))
set_task(time_shower,"cmdULTMWho",id)
return PLUGIN_CONTINUE
}

public cmdULTMWho(id)
{
switch(get_pcvar_num(who_type))
{
case 1: who_meniu(id)

case 2: who_motd(id)

case 3: who_table(id)

case 4: who_hud(id)

case 5: who_console(id)

}
return 0
}

who_meniu(id)
{
switch(get_pcvar_num(who_typemeniu))
{
case 1: who_meniu_admin_groups(id)

case 2: who_meniu_admin(id)
}
return 0
}
who_meniu_admin_groups(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32]
new szMenu[256], nLen, keys

nLen = format(szMenu[nLen], 255, who_meniu_ad_group_msg)
get_players(sPlayers, iNum, "ch")

for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
nLen += format(szMenu[nLen], 255-nLen,"r%s^n", GroupNames[p_of_pw])

for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]

if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
nLen += format(szMenu[nLen], 255-nLen,"w%s^n", sName)
}
}
}
nLen += format(szMenu[nLen], 255-nLen,"^nwPt a esi apasa y0 w sau y5" )
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
show_menu(id,keys,szMenu,-1)
return 0
}

who_meniu_admin(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32]
new szMenu[256], nLen, keys

nLen = format(szMenu[nLen], 255, who_meniu_admin_msg)

get_players(sPlayers, iNum, "ch")
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]

if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
nLen += format(szMenu[nLen], 255-nLen,"r%s^n", sName)
}
}
}
nLen += format(szMenu[nLen], 255-nLen,"^nwPt a esi apasa y0 w sau y5" )
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
show_menu(id,keys,szMenu,-1)
return 0
}

who_motd(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen

iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=000000><font color=#2EB9F5><pre>")

get_players(sPlayers, iNum, "ch")

for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h5><font color=^"purple^">%s^n</font></h5></center>", GroupNames[p_of_pw])

for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]

if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center>%s^n</center>", sName)
}
}
}
show_motd(id, sBuffer, motd_msg)
return 0

}

who_table(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen

iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h3><b><font color=^"red^">NUME - ACCES</font></h3></b></center>")

get_players(sPlayers, iNum, "ch")

for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]

if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h4><font color=^"white^">%s %s^n</font></h4></center>", sName, GroupNames[p_of_pw])
}
}
}
show_motd(id, sBuffer, motd_msg)
return 0
}

who_hud(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32], sBuffer[1024]
new iLen

get_players(sPlayers, iNum, "ch")

for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "=== %s ===^n", GroupNames[p_of_pw])

for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]

if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "%s^n", sName)
}
}
}
set_hudmessage(RRR, GGG, BBB, 0.02, 0.24, 0, 6.0, time_hud)
show_hudmessage(id, sBuffer)
return 0
}

who_console(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32]

get_players(sPlayers, iNum)
console_print(id, who_console_top)
for(new p_of_pw = 0; p_of_pw < GROUPS_NAME; p_of_pw++)
{
for(new a = 0; a < iNum ; a++)
{

iPlayer = sPlayers[a]
get_user_name(iPlayer, sName, sizeof sName - 1)
if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
console_print(id, "= %d = %s : %s", p_of_pw+1, GroupNames[p_of_pw], sName)


}
}
console_print(id, who_console_bottom)
return 0
}


2) La primu plugin nu am facut bne culorile si imi apar mersajele 1 dupa altu la unele...
Daca imi putetii face si mie culorile ar fi super....o sa scriu fiecare culoare
Unde am scris cu albastru puneti "culoarea specific echipelor ct - albastru / tero -rosu
Iar unde am scris cu alb "culoarea normala din chat"
Iar in rest puneti verde. [Mesagges_Shower.sma]
Mesajele EDIT:Pune alta imagine ce faci cu imaginea precedenta faci reclama ;)



3) Preturi_ranguri.sma
Cod:
#include <amxmodx>
#include <amxmisc>

#define ADVERTISING_TIME 149.0


stock const messages[][] = {

"*PRETURI* Vrei admin? Doneaza! la kInD[e]R. Scrie in chat /preturi sa vezi preturile!"

}



public plugin_init() {
register_plugin("Preturi Ranguri (motd)","1.1","Adi kriSTian")
register_clcmd ("say /preturi" , "preturi_ranguri_motd" , -1);
register_clcmd ("say_team /preturi" , "preturi_ranguri_motd" , -1);
set_task(ADVERTISING_TIME, "show_messages", _, _, _,"b");
}

public preturi_ranguri_motd(id) show_motd(id,"/addons/amxmodx/configs/preturi_ranguri_motd.html")

public show_messages()
{
new Buffer[256];
formatex(Buffer, sizeof Buffer - 1, "^x02%s", messages[random(sizeof messages)]);

new players[32], num, id;
get_players(players, num);

for(new i = 0 ; i < num ; i++)
{
id = players[i]

message_begin(MSG_ONE, get_user_msgid("SayText"), _, id);
write_byte(id);
write_string(Buffer);
message_end();
}
}


De modificat preturi_ranguri.html
Cod:
<BODY BGCOLOR="000000">

<center>
<p><b><font size="6" color="#FFFFFF"><B>Preturi Admini CS.ULTRAMANIA.RO</B>
<title></title>
<br><br><table border="2"><tr><th>  <FONT COLOR=#FFC0CB>Grad</font>  </th>
<img src="http://img209.imageshack.us/img209/7418/snapshot20120216224716.png" />
<img src="http://img4.imageshack.us/img4/5373/snapshot20120216224419.png" />

<th>  <FONT COLOR=#FFC0CB>Pret</font>  </th>

<th>  <FONT COLOR=#FFC0CB>Perioada</font>  </th>

<tr><td><FONT COLOR=#FF3030>Owner</font>  </td> <!!!Nume!!!!>
<td><FONT COLOR=#FCFCFC>10 Euro Cosmote/Vodafone</font> </td> <!!!Pret!!!>
<td><FONT COLOR=#FCFCFC>10 luni</font> </td>

<tr><td><FONT COLOR=#FF3030>GooD's</font>  </td> <!!!Nume!!!!>
<td><FONT COLOR=#FCFCFC>8 Euro Cosmote/Vodafone</font> </td> <!!!Pret!!!>
<td><FONT COLOR=#FCFCFC>10 luni</font> </td>

<tr><td><FONT COLOR=#FF3030>Moderator</font>  </td> <!!!Nume!!!!>
<td><FONT COLOR=#FCFCFC>5 Euro Cosmote/Vodafone</font> </td> <!!!Pret!!!>
<td><FONT COLOR=#FCFCFC>45 zile</font> </td>

<tr><td><FONT COLOR=#FF3030>Administrator</font>  </td> <!!!Nume!!!!>
<td><FONT COLOR=#FCFCFC>3 Euro Cosmote/Vodafone</font> </td> <!!!Pret!!!>
<td><FONT COLOR=#FCFCFC>60 zile</font> </td>

<tr><td><FONT COLOR=#FF3030>Helper</font>  </td> <!!!Nume!!!!>
<td><FONT COLOR=#FCFCFC>2 Euro Cosmote/Vodafone</font> </td> <!!!Pret!!!>
<td><FONT COLOR=#FCFCFC>30 zile</font> </td>

<tr><td><FONT COLOR=#FF3030>SloT</font>  </td> <!!!Nume!!!!>
<td><FONT COLOR=#FCFCFC>10 ore +cerere/forum</font> </td> <!!!Pret!!!>
<td><FONT COLOR=#FCFCFC>30 zile</font> </td>

</center>

Cand scriu in chat /preturi nu apare toate rangurile ...Apare decat pana la Administrator si dupa scrie Helper sh dupa nu mai scrie nimica daca mil puteti face si mie sa apara toate as fi recunascator... Multumesc mult
Daca puteti sa imi faceti sa fie ca in poza ar fi super http://img29.imagesh...19/92765427.png Multumesc multt de ajutor !!


 Profil  
 
(Neconectat)

Mesajde ic>3 » Lun Ian 23, 2012 4:27 pm

Membru
Status: Neconectat
Membru din: Vin Ian 13, 2012 3:39 pm
Mesaje: 109
Detinator: Nu
Cunostinte CS: FF Buna
Jucator: Nord.ultramania.ro
Harta Preferata: d2x2
Raspuns la intrebarea 3) >> Nu e bun plugin'l acela Face fata doar la 5 Grade admin's :P

Imagine





Imagine

Imagine


 Profil  
 
(Neconectat)

Mesajde KoRn » Lun Ian 23, 2012 4:37 pm

Membru
Status: Neconectat
Membru din: Joi Ian 12, 2012 10:13 pm
Mesaje: 35
Localitate: Iasi
Detinator: Da
Cunostinte CS: Excelente
Status: Dau la curiosi
Jucator: Nord.UltramaNia.Ro
SteamID: nord_ultramani
Harta Preferata: de_inferno de_nuke de_dust2
awp_bycastor
am modificat la 1 ;) era o imagine cu care faceai reclama :)

Imagine

Imagine
Imagine
Imagine
Mod : Clasic | IP : 82.77.230.9 | Owner : KoRn/Edy ;x | Y!M : bullet_head96


 Profil  
 
(Neconectat)

Mesajde kinder » Mar Ian 24, 2012 5:38 am

Membru
Status: Neconectat
Membru din: Lun Ian 23, 2012 2:01 pm
Mesaje: 2
Detinator: Nu
Cunostinte CS: excelente
Harta Preferata: fy_snow
Daca ma puteti ajuta postati aici sma si amx...multumesc :)


 Profil  
 
(Neconectat)

Mesajde FlOcOsU » Mar Apr 10, 2012 4:20 pm

Moderatori CS
Status: Neconectat
Membru din: Mar Mar 13, 2012 4:42 pm
Mesaje: 515
Localitate: Satu-Mare
Detinator: Nu
Cunostinte CS: BUNE
Status: r3 aLL
Jucator: mai multe servere
SteamID: nu-l public
Harta Preferata: fy_snow,deadrun_ice de_dust2
Avertismente: 2 din 3
. :|

Imagine

Imagine


Imagine


 Profil  
 
Afişează mesajele din ultimele:  Sortează după  
Scrie un subiect nou Răspunde la subiect  [ 5 mesaje ] 
 

Ora este UTC [ DST ]


Cine este conectat

 

Utilizatorii ce navighează pe acest forum: ^x.0.x^, -=Shok=-, *Pr0^LpS*, alexxxxxxxxx, Amun, Anddy, Assurelet, baliaceneancy, BidoNNas, BlackBurN, BLaCkMaGIc, bosnegel, boss, camalexxx, dev1l, Diablo™, dorinel_98, filme, flosxaytq, FreAkZ0id, FresH, Gr33n^Blu3, Ignigotceni, ignopaxia, java, lex16june, madalyn, MosTrudExpert, px8520, rababoc, RaDu^, rapmaster, razvy48, sandu97, ScorpioNv2, sN^bYa, TOperiaerora, VapAssise şi 0 vizitatori


Nu puteţi scrie subiecte noi în acest forum
Nu puteţi răspunde subiectelor din acest forum
Nu puteţi modifica mesajele dumneavoastră în acest forum
Nu puteţi şterge mesajele dumneavoastră în acest forum
Nu puteţi publica fişiere ataşate în acest forum

Mergi la:  


Forum optimizat pentru Google Chrome, Mozilla Firefox si Opera
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group