Ranga (R3X) i plugin Pokazuj
Artur
06.12.2012
Ranga: http://amxx.pl/topic/13035-ranga/
Info w say: http://amxx.pl/topic/11474-info-w-say/
Chciałbym żeby ktoś Edytował ten plugin w ten sposób żeby zamiast tego
wyświetlała mi się informacja o randze z pluginu R3X'a: ** Twoja ranga to: Killer
( SMA Rangi: )
sdfv.sma 7,26 KB 29 Ilość pobrań
Info w say: http://amxx.pl/topic/11474-info-w-say/
#include <amxmodx>
#include <csx>
#include <colorchat>
new gcvarForum;
public plugin_init()
{
register_plugin("plg ","0.1","emblaze")
set_task(180.0, "showTimer",0,"",0,"b")
gcvarForum=register_cvar("amx_forum", "adres forum")
return PLUGIN_CONTINUE
}
public showTimer(id){
new nazwa[32]
get_cvar_string("hostname",nazwa,31)
ColorChat(id,GREEN, "**^x01 Witamy na: ^x03%s",nazwa);
new forum[32]
get_pcvar_string(gcvarForum,forum, 31)
ColorChat(id,GREEN, "**^x01 WWW serwera: ^x03%s",forum)
new nextmap[32]
get_cvar_string("amx_nextmap",nextmap,31)
ColorChat(id,GREEN, "**^x01 Nastepna mapa: ^x03%s", nextmap)
if (get_cvar_float("mp_timelimit"))
{
new a = get_timeleft()
if (get_cvar_num("amx_time_voice"))
{
}
ColorChat(id,GREEN, "**^x01 Czas do konca mapy: ^x03%d^x04:^x03%02d", (a / 60), (a % 60))
}
//Delay for order
set_task(0.1, "showRank", 1);
}
public showRank(id){
new izStats[8], izBody[8]
new iRankPos, iRankMax
new Players[32], playerCount;
get_players(Players, playerCount);
new id2;
for (new i=0; i<playerCount; i++){
id2 = Players[i];
iRankPos = get_user_stats(id2, izStats, izBody)
iRankMax = get_statsnum()
ColorChat(id2, GREEN, "**^x01 Twoj rank wynosi:^x04 %d^x01/^x04%d", iRankPos, iRankMax)
}
}
Chciałbym żeby ktoś Edytował ten plugin w ten sposób żeby zamiast tego
ColorChat(id,GREEN, "**^x01 Nastepna mapa: ^x03%s", nextmap)
wyświetlała mi się informacja o randze z pluginu R3X'a: ** Twoja ranga to: Killer
( SMA Rangi: )
sdfv.sma 7,26 KB 29 Ilość pobrań
Użytkownik benio101 edytował ten post 07.12.2012 05:08
Przeniesienie kodu do pliku SMA
Gość_21977_* 07.12.2012
Automatyczna wiadomość
Ten temat został przeniesiony z forum
AMX Mod X → Problemy
do
Scripting AMXX → Pluginy
Ten temat został przeniesiony z forum
AMX Mod X → Problemy
do
Scripting AMXX → Pluginy