Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
#1
Napisano 20.03.2010 10:13
Na koniec każdej rundy otrzymują $1000 - dzięki czemu, praktycznie nigdy nie muszą grać eco.
Przy dodawaniu dodatkowych 1000$ pisze w say informacja:
Jako gracz VIP otrzymujesz 1000$
Kolory informacji takie jak podałem
Konto VIP można nadawac na NICK+PW lub SteamID.
Pozdrawiam z góry dzięki
20 marzec 2010 - 10:13:
REFRESH
#2
Napisano 20.03.2010 10:46
#3
Napisano 20.03.2010 10:59
#4
Napisano 20.03.2010 12:22
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
new maxplayers
new gmsgSayText
new give_money
new round = 1
public plugin_init()
{
register_plugin("VIP Plugin", "0.1", "unknown")
give_money = register_cvar("give_money", "1000")
register_logevent("logevent_Round_Start", 2, "1=Round_Start");
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
register_clcmd("say", "handle_say")
register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)
}
public logevent_Round_Start()
{
round++;
new players[32], player, pnum;
new msg[100]
get_players(players, pnum, "a");
for(new i = 0; i < pnum; i++)
{
player = players[i];
if(get_user_flags(player) & ADMIN_LEVEL_H)
{
// new money = cs_get_user_money(player)
new dostaleskase[256]
formatex(msg,99,"Jako gracz^x03 VIP^x01 otrzymujesz^x04 %s $", give_money)
for(new i = 1; i <= get_playersnum(); i++)
print_message(i,msg)
format(dostaleskase, 111, "Jako gracz^x03 VIP^x01 otrzymujesz^x04 1000$")
print_message(player, dostaleskase)
cs_set_user_money(player, give_money)
}
}
return PLUGIN_HANDLED
}
public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/vipy") != -1 )
set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public print_adminlist(user)
{
new adminnames[33][32]
new message[256]
new contactinfo[256], contact[112]
new id, count, x, len
for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_LEVEL_H)
get_user_name(id, adminnames[count++], 31)
len = format(message, 255, "%s Dostepny VIP: ",COLOR)
if(count > 0) {
for(x = 0 ; x < count ; x++) {
len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message[len], 255-len, "Brak dostepnych VIPow.")
print_message(user, message)
get_cvar_string("amx_contactinfo", contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%s Kontakt z Adminem -- %s", COLOR, contact)
print_message(user, contactinfo)
}
}
}
public print_message(id, msg[])
{
if(!is_user_connected(id))
return
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
Niech ktoś to dokończy bo mi za dużo kasy daje nie wiem jak to rozwiązać
#5
Napisano 22.03.2010 18:18
22 marzec 2010 - 18:18:
jest tam ktos?
#6
Napisano 22.03.2010 19:36
cs_set_user_money(player, give_money)>>
cs_set_user_money(player, cs_get_user_money(id)+get_pcvar_num(give_money))
#7
Napisano 27.03.2010 10:56
HELP
#8
Napisano 28.03.2010 00:09
#9
Napisano 28.03.2010 10:40
Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/phpTYlGd5.sma(39) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpTYlGd5.sma(41) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpTYlGd5.sma(43) : error 017: undefined symbol "id"
/home/groups/amxmodx/tmp3/phpTYlGd5.sma(102) : warning 204: symbol is assigned a value that is never used: "gmsgSayText"
1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpTYlGd5.amx (compile failed).
Na AMX- STUDIO:
Warning Loose indentation on line 39
Warning Loose indentation on line 41
Error: Undefined symbol "id" on line 43
Warning symbol is assiquned a value that is never used: "gmsgSayText" on line 102
Zrobicie cos ? Czekam na ten plugin 1 tydz,....
#10
Napisano 28.03.2010 19:09
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
new maxplayers
new gmsgSayText
new give_money
new round = 1
public plugin_init()
{
register_plugin("VIP Plugin", "0.1", "unknown")
give_money = register_cvar("give_money", "1000")
register_logevent("logevent_Round_Start", 2, "1=Round_Start");
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
register_clcmd("say", "handle_say")
register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)
}
public logevent_Round_Start()
{
round++;
new players[32], player, pnum;
new msg[100]
get_players(players, pnum, "a");
for(new i = 0; i < pnum; i++)
{
player = players[i];
if(get_user_flags(player) & ADMIN_LEVEL_H)
{
new dostaleskase[256]
formatex(msg,99,"Jako gracz^x03 VIP^x01 otrzymujesz^x04 %s $", give_money)
for(new i = 1; i <= get_playersnum(); i++)
print_message(i,msg)
format(dostaleskase, 111, "Jako gracz^x03 VIP^x01 otrzymujesz^x04 1000$")
print_message(player, dostaleskase)
cs_set_user_money(player, cs_get_user_money(player)+get_pcvar_num(give_money))
}
}
return PLUGIN_HANDLED
}
public handle_say(id)
{
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/vipy") != -1 )
set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public print_adminlist(user)
{
new adminnames[33][32]
new message[256]
new contactinfo[256], contact[112]
new id, count, x, len
for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_LEVEL_H)
get_user_name(id, adminnames[count++], 31)
len = format(message, 255, "%s Dostepny VIP: ",COLOR)
if(count > 0)
{
for(x = 0 ; x < count ; x++)
{
len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
if(len > 96 )
{
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else
{
len += format(message[len], 255-len, "Brak dostepnych VIPow.")
print_message(user, message)
get_cvar_string("amx_contactinfo", contact, 63)
if(contact[0])
{
format(contactinfo, 111, "%s Kontakt z Adminem -- %s", COLOR, contact)
print_message(user, contactinfo)
}
}
}
public print_message(id, msg[])
{
if(!is_user_connected(id))
return
message_begin(MSG_ONE_UNRELIABLE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
#11
Napisano 03.04.2010 14:18
03 kwiecień 2010 - 15:18:
HELP
#12
Napisano 03.04.2010 15:18
komendy
/vipy //wyswietla liste vipow screen 1
define
[code
]#define printComand 1 //jeśli 1 wyświetla co rundę powiadomienie o możliwości sprawdzenia listy vipow online (screen 2 ), jeśli 0 to powiadomienia nie ma (screen 1)
#define hostName "[Cs-proGress.pl]" //nazwa serwera lub cokolwiek innego co ma sie wyświetlać przed wiadomościami tego pluginu[/code]
przed skompilowaniem pluginu do folderu scripting/includes należy skopiować plik colorchat.inc znajdujący się w załączniku poniżej.
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <colorchat> #define PLUGIN "VIP_Cash" #define VERSION "1.0" #define AUTHOR "BNG" #define hostName "[Cs-proGress.pl]" //nazwa serwera #define printComand 1 // jesli 1 to w nowuej rundzie pokazuje sie w chacie napis ze mozna uzyc komendy /vipy new moneyCount public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_cvar("moneyCount","1000"); register_logevent("newRound",2,"1=Round_Start"); register_clcmd("say /vipy", "printVip"); return PLUGIN_CONTINUE; } public newRound() { moneyCount=1000; new players[32]; new playersNum; new player; get_players(players, playersNum,"a"); for(new i=0;i<playersNum;i++) { player=players[i]; if(printComand==1) { ColorChat(player,BLUE,"%s^x01 Aby dostac informacje o ^x04Vipach^x01 wpisz ^x03/vipy", hostName); } if(get_user_flags(player) & ADMIN_LEVEL_H) { ColorChat(player,NORMAL,"Jako gracz ^x03VIP^x01 otrzymujesz^x04 %d$", moneyCount); cs_set_user_money(player,cs_get_user_money(player)+moneyCount); } } return PLUGIN_CONTINUE; } public printVip(id) { new players[32]; new playersNum; new player; new vipNum=0; ColorChat(id,BLUE,"%s^x04 Vipy^x01 online",hostName); get_players(players, playersNum,"a"); { vipNum++; for(new i=0;i<playersNum;i++) { player=players[i]; new playerName[32]; get_user_name(player,playerName,31); if(get_user_flags(player) & ADMIN_LEVEL_H) { ColorChat(id,RED,"%s",playerName); } } } if(vipNum==0) { ColorChat(id,BLUE,"%s^x01 Brak ^x04Vipow^x01 na Serwerze", hostName); } else if(vipNum==1) { ColorChat(id,BLUE,"%s^x01 %d ^x04Vip^x01 na Serwerze",hostName,playersNum); } else { ColorChat(id,BLUE,"%s^x01 %d ^x04Vip^x01 na Serwerze",hostName,playersNum); } return PLUGIN_HANDLED; }
Załączone pliki
#13
Napisano 06.04.2010 15:38
06 kwiecień 2010 - 16:38:
Pomoże ktoś!!!!?
#14
Napisano 06.04.2010 15:52
/vips
Jak będę miał czas to zrobię dalej
Załączone pliki
#15
Napisano 06.04.2010 16:09
Jest git wgrałem sma Misieq w którym działa dodawanie kasy i wgrałem sma burnhouse w którym działa komenda /vips
Teraz jest wszystko to co chciałem tylko co zmienic w sma MisieQu aby przy każdej rundzie przy dodawaniu kasy pisało tylko 1 info:
Jako gracz VIP otrzymujesz 1000$
a nie:
Jako gracz VIP otrzymujesz VIP Plugin $
*** Modnde killed Router . with a headshot from m4a1 ***
Jako gracz VIP otrzymujesz 1000$
Tzn aby nie było tego spamu 2x?
Użytkownik Rubasze edytował ten post 06.04.2010 17:22
#16
Napisano 06.04.2010 17:21
Zmień
#define ADMIN_LEVEL_F
#17
Napisano 07.04.2010 14:18
#18
Napisano 07.04.2010 19:39
public logevent_Round_Start() { round++; new players[32], player, pnum; new msg[100] get_players(players, pnum, "a"); for(new i = 0; i < pnum; i++) { player = players[i]; if(get_user_flags(player) & ADMIN_LEVEL_H) { new dostaleskase[256] formatex(msg,99,"Jako gracz^x03 VIP^x01 otrzymujesz^x04 %s $", give_money) for(new i = 1; i <= get_playersnum(); i++) print_message(i,msg) format(dostaleskase, 111, "Jako gracz^x03 VIP^x01 otrzymujesz^x04 1000$") print_message(player, dostaleskase) cs_set_user_money(player, cs_get_user_money(player)+get_pcvar_num(give_money)) } } return PLUGIN_HANDLED }
usuń linijke:
format(dostaleskase, 111, "Jako gracz^x03 VIP^x01 otrzymujesz^x04 1000$") print_message(player, dostaleskase)
Również z jednym lub większą ilością słów kluczowych: Nowy Plugin
|
Nowy Plugin
[KOSZ] pluginNapisany przez Frodo1981, 25.02.2024 nowy plugin |
|
|||
Nowy Plugin
vip pbNapisany przez One ShooT, 04.02.2024 nowy plugin |
|
||||
Nowy Plugin
Admin menuNapisany przez stół z powyłamywanymi, 22.09.2022 nowy plugin |
|
||||
Nowy Plugin
Prośba o napisanie pluginuNapisany przez stół z powyłamywanymi, 15.08.2022 nowy plugin |
|
||||
Nowy Plugin
PLUGIN NA DRplugin Napisany przez bawarskagolonka123, 25.06.2021 nowy plugin |
|
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych