Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/fhrv652/public_html/Sources/Load.php(194) : runtime-created function on line 3
Pomoc oko plugina rs

Author Topic: Pomoc oko plugina rs  (Read 3948 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Pomoc oko plugina rs
« on: May 22, 2011, 11:18:53 PM »
Ja bi zelija da /rs i /resetscore da je sve u jednom pluginu da obo dvoje moze!
Ako bi mogli uredit kad napise rs ili resetscore da se pojavi vako


[LecevicA] Uspjesno ste resetovali svoj skor.

Da ovo lecevica pise zelenim sloviam i ove zagrade []
Molivas neko napravite i stavite tu link za download HVALA

Offline
***
Re: Pomoc oko plugina rs
« Reply #1 on: May 23, 2011, 11:13:22 AM »
poz
skini plugin s ovog linka : http://plugins.kgb-hosting.com/?page...298f5c0dbe754e
instaliraj ga na server...
idi u amxx.cfg i skroz na kraj dodaj ovo
Quote
rs_prefiks "Lecevica"

Offline
*
Re: Pomoc oko plugina rs
« Reply #2 on: May 23, 2011, 03:22:40 PM »
Hvala..

Offline
*
Re: Pomoc oko plugina rs
« Reply #3 on: April 19, 2012, 01:41:34 PM »
nisam nasao taj plugin rs za dovnload u kgb hosting

Offline
*
Re: Pomoc oko plugina rs
« Reply #4 on: April 19, 2012, 02:27:04 PM »
Uzmes obican source od plugina resetscore i moras ga izmjeniti te kompajlirati (nije teško ali za početnike možda i je).
Banner 500x100

Offline
*
Re: Pomoc oko plugina rs
« Reply #5 on: April 19, 2012, 10:50:14 PM »
mozes li mi malo bolje objasniti plz hitno je

Offline
**
Re: Pomoc oko plugina rs
« Reply #6 on: April 28, 2012, 01:54:08 AM »
Evo ja koristim ovaj plugin kod sebe, ovo je originalni, moj je prerađen prema mojim željama, ali lako ćeš preraditi sam prema svojim, samo malo pogledaj.
Nakon što ga preradiš možeš ga kompajlirati ovdje da dobiješ .amxx fajl, odnosno gotov plugin: http://www.amxmodx.org/webcompiler.cgi

Code: [Select]
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime 600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

public plugin_init()
{
register_plugin("Reset Score", "1.0", "Silenttt")

//You may type /resetscore or /restartscore
register_clcmd("say /resetscore", "reset_score")
register_clcmd("say /restartscore", "reset_score")
register_clcmd("say /rs", "reset_score")

//This command by default will be set at 0
//Change it to 1 in server.cfg if you want
//A message to be shown to advertise this.
pcvar_Advertise = register_cvar("sv_rsadvertise", "0")
//This command by default is also 0
//Change it to 1 in server.cfg if you want
//It to show who reset their scores when they do it
pcvar_Display = register_cvar("sv_rsdisplay", "0")

if(get_cvar_num("sv_rsadvertise") == 1)
{
set_task(adtime, "advertise", _, _, _, "b")
}
}

public reset_score(id)
{
//These both NEED to be done twice, otherwise your frags wont
//until the next round
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)

if(get_pcvar_num(pcvar_Display) == 1)
{
new name[33]
get_user_name(id, name, 32)
client_print(0, print_chat, "%s has just reset his score", name)
}
else
{
client_print(id, print_chat, "You have just reset your score")
}
return PLUGIN_HANDLED
}

public advertise()
{
set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0)
show_hudmessage(0, "By typing /rs you can restart your deaths and kills back to 0")
}

public client_putinserver(id)
{
if(get_pcvar_num(pcvar_Advertise) == 1)
{
set_task(10.0, "connectmessage", id, _, _, "a", 1)
}
}

public connectmessage(id)
{
if(is_user_connected(id))
{
client_print(id, print_chat, "By typing /resetscore at any time during the game, you can reset your deaths and kills back to 0 (rather than reconnecting)")
}
}
« Last Edit: April 28, 2012, 01:56:38 AM by Dirigent »

Offline
**
Re: Pomoc oko plugina rs
« Reply #7 on: May 13, 2012, 02:40:13 PM »
Reset Score v3.0

Info:

Ovaj plugin omogucava igracima da u toku igre resetuju svoj skor na nulu igraci vise ne moraju da rade reconnect i retry.

Komande:

 say /rs
 say /resetscore
 say /restartscore
 say_team /rs
 say_team /resetscore
 say_team /restartscore

rs_prefix Prefix ispred poruke npr: rs_prefix "Zeljeni Text"
 Imate rezultat -> [Zeljeni Text] Uspesno ste resetovali svoj skor
rs_prikaz <1/0> po defaultu je: 0
rs_vreme <# vreme u sek> po defaultu je: 10 min
rs_obavestenje_hud <1/0> po defaultu je: 1
rs_obavestenje_chat <1/0> po defaultu je: 1

Ostalo:

 *Kada je rs_prikaz 0 ovu poruku izbacuje klijentu


*Kada je rs_prikaz 1 ovu poruku izbacuje svim klijentima
 boja nicka zavisi od tima u kome se nalazi onaj ko resetuje skor.


*Chat obavestenje izlazi pri konekciji na server
 mozete ga ugaisti komandom rs_obavestenje_chat 0


*HUD obavestenje izlazi na sredini ekrana svakih 10 minuta,
 mozete ga ugaisti komandom rs_obavestenje_hud 0



Lista servera sa ovim pluginom

Download:
« Last Edit: May 13, 2012, 02:41:49 PM by mI$ke »