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.
|
Guest Message by DevFuse
Overlord210
Rejestracja: 14.04.2012Aktualnie: Nieaktywny
Poza forum Ostatnio: 16.02.2013 13:40





Statystyki
- Grupa: Użytkownik
- Całość postów: 9
- Odwiedzin: 2 008
- Tytuł: Nowy
- Wiek: Wiek nie został ustalony
- Urodziny: Data urodzin nie została podana
-
Płeć
Mężczyzna
-
Lokalizacja
Poznań
Kontakt
Moje posty
W temacie: Respienie pod mapą
19.04.2012 16:56
Ok dzięki ci, a jak zrobić te granaty?
W temacie: Respienie pod mapą
19.04.2012 13:41
Nie nie robiłem sam spawnów. A mam jeszcze jedna pytanie, jak zrobić aby dostawać granaty w dm albo żeby był wybór granatów?
;CSDM Configuration File
; Default settings by BAILOPAN
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the Main plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[settings]
;Sets whether CSDM is enabled or not.
enabled = 1
;Sets whether or not players should be stripped of weapons on round start
; (excludes knife)
strip_weapons = 1
;Sets how long weapons should stay on the ground for after being dropped
;in seconds. note that enabling this can create lots of lag for clients
; AND server. 0 is immediate, -1 is infinite.
weapons_stay = 0
;Sets the spawn mode.
; "none" - users spawn at normal map spawn points
; "preset" - csdm_spawn_preset.amxx required, uses predefined spawns in config files
; -- others may be supplied by 3rd party plugins
spawnmode = preset
;Sets whether the bomb is removed
remove_bomb = 1
;Sets the spawn waiting time
spawn_wait_time = 0.75
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the FFA plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ffa]
;Set whether free for all mode is enabled by default
enabled = 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the Misc plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[misc]
;Map objectives are removed by their flags.
; a - as_ maps
; b - buyzones are removed
; c - cs_ maps
; d - de_ maps
remove_objectives = abcd
;Blocks people from using all buy commands
block_buy = 1
;Auto-refills ammo when it gets depleted
ammo_refill = 1
;Says a radio command to a player when they respawn
spawn_radio_msg = 0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the ticketing plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ticketing]
;Is round ticketing enabled?
enabled = 0
;Number of times a team can have players respawn before they stop
; being able to respawn
tickets = 150
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the protection plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[protection]
;Is spawn protection enabled?
enabled = 1
;Colors of glow shell, leave this in quotes
;The digits are R, G, B, A where A is the alpha transparency
; (as A gets higher, the glow shell is thicker)
colors = "0 255 0 200"
;Number of seconds someone is respawned for.
time = 2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the equip plugin for these sections
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[equip]
;Equip Menu flags:
; p - primary
; s - secondary
; a - armor
; g - grenade
; b - buy
menus = psa
;Autoitem flags:
; a - armor
; h - helmet
; g - grenades
; d - defusekit (CTs only!)
; n - nightvision
autoitems = ah
;Grenade flags:
; f - flashbang
; h - he grenade
; s - smoke grenade
grenades = h
;Sets number of flashbangs given if
; grenades are enabled
fnadesnum = 1
;;;;;;;;;;;;;;;;
;;WEAPON MENUS;;
;;;;;;;;;;;;;;;;
;Format for weapon menus is:
;shortname "Display Name" menupage
;Change the '1' to a '0' to block the weapon
;Removing or moving things
; from the list will change the order of the menus!
[secondary]
usp USP 1
glock18 Glock 1
deagle Deagle 1
p228 P228 1
elite Elite 1
fiveseven "Five Seven" 1
[primary]
m4a1 M4A1 1
ak47 AK47 1
aug AUG 1
sg552 SG552 1
galil Galil 1
famas Famas 1
scout Scout 1
awp AWP 1
sg550 SG550 1
m249 M249 1
g3sg1 G3SG1 1
ump45 "UMP 45" 1
mp5navy "MP5 Navy" 1
m3 M3 1
xm1014 XM1014 1
tmp TMP 1
mac10 "Mac 10" 1
p90 P90 1
;List weapons here the bots can randomly have
;The short name must match one in the list above
[botsecondary]
deagle
usp
[botprimary]
ak47
m4a1
awp
galil
aug
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the item mode plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[items]
;Is item mode enabled?
enabled = 0
;If set to 1, players will drop a pack of goodies when they die.
drop_packs = 1
;Sets the number of armor given by a battery. Default is 15.
battery = 15
;Sets the number of health given by a medkit. Default is 15.
medkit = 15
;Sets the time to wait for an item to reappear on its place. Default is 20 (0 = permanent)
item_time = 20
;Sets how long packs stay on the ground. (Max is 30 seconds)
drop_time = 20
;Remove semicolons to restrict any of the following items
; or add the short weapon names of the weapons you want to restrict (m4a1, ak47, awp ...)
[item_restrictions]
;longjump
;medkit
;battery
;pistolammo
;rifleammo
;shotammo
;smgammo
;awpammo
;paraammo
;fullammo
;armor
;CSDM Configuration File
; Default settings by BAILOPAN
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the Main plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[settings]
;Sets whether CSDM is enabled or not.
enabled = 1
;Sets whether or not players should be stripped of weapons on round start
; (excludes knife)
strip_weapons = 1
;Sets how long weapons should stay on the ground for after being dropped
;in seconds. note that enabling this can create lots of lag for clients
; AND server. 0 is immediate, -1 is infinite.
weapons_stay = 0
;Sets the spawn mode.
; "none" - users spawn at normal map spawn points
; "preset" - csdm_spawn_preset.amxx required, uses predefined spawns in config files
; -- others may be supplied by 3rd party plugins
spawnmode = preset
;Sets whether the bomb is removed
remove_bomb = 1
;Sets the spawn waiting time
spawn_wait_time = 0.75
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the FFA plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ffa]
;Set whether free for all mode is enabled by default
enabled = 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the Misc plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[misc]
;Map objectives are removed by their flags.
; a - as_ maps
; b - buyzones are removed
; c - cs_ maps
; d - de_ maps
remove_objectives = abcd
;Blocks people from using all buy commands
block_buy = 1
;Auto-refills ammo when it gets depleted
ammo_refill = 1
;Says a radio command to a player when they respawn
spawn_radio_msg = 0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the ticketing plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ticketing]
;Is round ticketing enabled?
enabled = 0
;Number of times a team can have players respawn before they stop
; being able to respawn
tickets = 150
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the protection plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[protection]
;Is spawn protection enabled?
enabled = 1
;Colors of glow shell, leave this in quotes
;The digits are R, G, B, A where A is the alpha transparency
; (as A gets higher, the glow shell is thicker)
colors = "0 255 0 200"
;Number of seconds someone is respawned for.
time = 2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the equip plugin for these sections
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[equip]
;Equip Menu flags:
; p - primary
; s - secondary
; a - armor
; g - grenade
; b - buy
menus = psa
;Autoitem flags:
; a - armor
; h - helmet
; g - grenades
; d - defusekit (CTs only!)
; n - nightvision
autoitems = ah
;Grenade flags:
; f - flashbang
; h - he grenade
; s - smoke grenade
grenades = h
;Sets number of flashbangs given if
; grenades are enabled
fnadesnum = 1
;;;;;;;;;;;;;;;;
;;WEAPON MENUS;;
;;;;;;;;;;;;;;;;
;Format for weapon menus is:
;shortname "Display Name" menupage
;Change the '1' to a '0' to block the weapon
;Removing or moving things
; from the list will change the order of the menus!
[secondary]
usp USP 1
glock18 Glock 1
deagle Deagle 1
p228 P228 1
elite Elite 1
fiveseven "Five Seven" 1
[primary]
m4a1 M4A1 1
ak47 AK47 1
aug AUG 1
sg552 SG552 1
galil Galil 1
famas Famas 1
scout Scout 1
awp AWP 1
sg550 SG550 1
m249 M249 1
g3sg1 G3SG1 1
ump45 "UMP 45" 1
mp5navy "MP5 Navy" 1
m3 M3 1
xm1014 XM1014 1
tmp TMP 1
mac10 "Mac 10" 1
p90 P90 1
;List weapons here the bots can randomly have
;The short name must match one in the list above
[botsecondary]
deagle
usp
[botprimary]
ak47
m4a1
awp
galil
aug
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the item mode plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[items]
;Is item mode enabled?
enabled = 0
;If set to 1, players will drop a pack of goodies when they die.
drop_packs = 1
;Sets the number of armor given by a battery. Default is 15.
battery = 15
;Sets the number of health given by a medkit. Default is 15.
medkit = 15
;Sets the time to wait for an item to reappear on its place. Default is 20 (0 = permanent)
item_time = 20
;Sets how long packs stay on the ground. (Max is 30 seconds)
drop_time = 20
;Remove semicolons to restrict any of the following items
; or add the short weapon names of the weapons you want to restrict (m4a1, ak47, awp ...)
[item_restrictions]
;longjump
;medkit
;battery
;pistolammo
;rifleammo
;shotammo
;smgammo
;awpammo
;paraammo
;fullammo
;armor
W temacie: Dodawanie rzeczy do sklepu
17.04.2012 15:21
Zrobiłem jak kazałeś i nadal nie działa.
W temacie: Dodawanie rzeczy do sklepu
17.04.2012 13:28
Chodzi o to że ja mam plugin na sklep i jest komenda /sklep i pojawia się menu sklepu i można kupić tam assasyna, gumioki i itp. I ja chcę dodaćdo menu tego sklepu miniguna, kusze i miotacz ognia a by było można kupić przez menu sklepu a nie komendę.
kusza: /xbow
minigun: /mg
miotacz ognia: /buyft
SMA sklepu:
/* Script generated by Pawn Studio */
#include <amxmodx>
#include <fakemeta>
#include <cstrike>
#include <fun>
#include <colorchat>
#include <engine>
//#define HUD set_hudmessage(230, 0, 255, 0.2, 0.2, 0, 6.0, 20.0)
#define PLUGIN "Sklep 4FUN"
#define AUTHOR "Pusty [b] wszystko zlaczyl w 1 plug"
#define VERSION "1.0"
new bool:assasyn[33], bool:radar[33], bool:modul[33], bool:buty[33], bool:moze_skakac[33], skoki[33]
new g_msgHostageAdd, g_msgHostageDel; // radar
//new HudMsg
new Float:ostatni_skok[33];
stock bool:is_player(id)
{
if(is_user_connected(id) || is_user_connecting(id))
return true
return false
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /sklep", "Sklep")
register_cvar("fun_assasyn", "7500")
register_cvar("fun_radar", "8000")
register_cvar("fun_modul", "5000")
register_cvar("fun_buty", "3500")
register_cvar("fun_skok", "2500")
register_event("DeathMsg", "Smierc", "ade")
register_event("CurWeapon", "CurWeapon", "be", "1=1");
register_forward(FM_Spawn, "SpawnGracza", 1)
// radar
g_msgHostageAdd = get_user_msgid("HostagePos");
g_msgHostageDel = get_user_msgid("HostageK");
set_task(1.0, "radar_scan", _, _, _, "b"); // radar
//HudMsg = CreateHudSyncObj()
}
public Sklep(id)
{
new opcja1[100]
new opcja2[100]
new opcja3[100]
new opcja4[100]
new opcja5[100]
format(opcja1, charsmax(opcja1), "Asasyn\y(Stajesz sie Asasynem)\r[\yKoszt:\w %i\r]", get_cvar_num("fun_assasyn"))
format(opcja2, charsmax(opcja2), "Radar\y(Na radaze widzisz wrogow)\r[\yKoszt:\w %i\r]", get_cvar_num("fun_radar"))
format(opcja3, charsmax(opcja3), "Modul Odrzutowy\y(Skocz i Kucnij aby uzyc)\r[\yKoszt:\w %i\r]", get_cvar_num("fun_modul"))
format(opcja4, charsmax(opcja4), "Gumioki\y(Chodzisz cicho)\r[\yKoszt:\w %i\r]", get_cvar_num("fun_buty"))
format(opcja5, charsmax(opcja5), "Kalczuki\y(4 dodatkowe skoki)\r[\yKoszt:\w %i\r]", get_cvar_num("fun_skok"))
new menu = menu_create("\rSklep 4FUN by Pusty[b]", "SklepHandle")
menu_additem(menu, opcja1, "1")
menu_additem(menu, opcja2, "2")
menu_additem(menu, opcja3, "3")
menu_additem(menu, opcja4, "4")
menu_additem(menu, opcja5, "5")
menu_addtext(menu, "\yWszystkie umiejetnosci dzialaja do \rsmierci!")
menu_display(id, menu)
}
public SklepHandle(id, menu, item)
{
if(!is_player(id) || !is_user_alive(id))
return PLUGIN_CONTINUE
new kasa = cs_get_user_money(id)
new name[35]
get_user_name(id, name, 34)
switch(item)
{
case 0:
{
if(assasyn[id])
{
ColorChat(id, GREEN, "Jestes juz asasynem")
return PLUGIN_HANDLED
}
if(kasa >= get_cvar_num("fun_assasyn"))
{
ColorChat(id, GREEN, "Gracz %s stal sie asasynem", name)
AssasynMode(id)
cs_set_user_money(id, kasa-get_cvar_num("fun_assasyn"))
}
else
{
ColorChat(id, GREEN, "Nie stac cie")
return PLUGIN_HANDLED
}
}
case 1:
{
if(radar[id])
{
ColorChat(id, GREEN, "Masz juz Radar")
return PLUGIN_HANDLED
}
if(kasa >= get_cvar_num("fun_radar"))
{
ColorChat(id, GREEN, "Gracz %s widzi wrogow na radarze", name)
radar[id] = true
cs_set_user_money(id, kasa-get_cvar_num("fun_radar"))
}
else
{
ColorChat(id, GREEN, "Nie stac cie")
return PLUGIN_HANDLED
}
}
case 2:
{
if(modul[id])
{
ColorChat(id, GREEN, "Masz juz Modul Odrzutowy")
return PLUGIN_HANDLED
}
if(kasa >= get_cvar_num("fun_modul"))
{
ColorChat(id, GREEN, "Gracz %s ma Modul Odrzutowy", name)
modul[id] = true
cs_set_user_money(id, kasa-get_cvar_num("fun_modul"))
}
else
{
ColorChat(id, GREEN, "Nie stac cie")
return PLUGIN_HANDLED
}
}
case 3:
{
if(buty[id])
{
ColorChat(id, GREEN, "Masz juz Gumioki")
return PLUGIN_HANDLED
}
if(kasa >= get_cvar_num("fun_buty"))
{
ColorChat(id, GREEN, "Gracz %s ma Gumioki", name)
buty[id] = true
Gumioki(id)
cs_set_user_money(id, kasa-get_cvar_num("fun_buty"))
}
else
{
ColorChat(id, GREEN, "Nie stac cie")
return PLUGIN_HANDLED
}
}
case 4:
{
if(skoki[id])
{
ColorChat(id, GREEN, "Masz juz Kalczuki")
return PLUGIN_HANDLED
}
if(kasa >= get_cvar_num("fun_skok"))
{
ColorChat(id, GREEN, "Gracz %s ma Kalczuki", name)
moze_skakac[id] = true
cs_set_user_money(id, kasa-get_cvar_num("fun_skok"))
}
else
{
ColorChat(id, GREEN, "Nie stac cie")
return PLUGIN_HANDLED
}
}
}
return PLUGIN_CONTINUE
}
public AssasynMode(id)
{
if(!is_player(id) || !is_user_alive(id))
return PLUGIN_CONTINUE
assasyn[id] = true
set_user_health(id, 150)
engclient_cmd(id, "weapon_knife")
return PLUGIN_CONTINUE
}
public Gumioki(id)
{
if(!is_player(id) || !is_user_alive(id))
return PLUGIN_CONTINUE
set_user_footsteps(id, 0)
return PLUGIN_CONTINUE
}
public client_PreThink(id)
{
if(!is_player(id) || !is_user_alive(id))
return PLUGIN_CONTINUE
new button = get_user_button(id);
new oldbutton = get_user_oldbutton(id)
new flags = pev(id, pev_flags);
if(assasyn[id] == true)
{
set_user_rendering(id,kRenderFxGlowShell,0,0,0 ,kRenderTransAlpha, 15);
set_user_gravity(id, 0.25)
}
if(modul[id])
{
if(button & IN_JUMP && button & IN_DUCK)
{
if(get_gametime() > ostatni_skok[id]+4.0)
{
ostatni_skok[id] = get_gametime();
new Float:velocity[3];
velocity_by_aim(id, 666, velocity);
velocity[2] = random_float(265.0,285.0);
set_pev(id, pev_velocity, velocity);
}
}
}
if((button & IN_JUMP) && !(flags & FL_ONGROUND) && !(oldbutton & IN_JUMP) && skoki[id])
{
skoki[id]--
new Float:velocity[3];
pev(id, pev_velocity, velocity);
velocity[2] = random_float(265.0,285.0);
set_pev(id, pev_velocity, velocity);
}
else if(flags & FL_ONGROUND && moze_skakac[id])
skoki[id] = 4;
return PLUGIN_CONTINUE
}
public Smierc()
{
new kid = read_data(1)
new vid = read_data(2)
if(!is_player(kid) || !is_user_alive(kid))
return PLUGIN_CONTINUE
if(assasyn[vid])
{
ColorChat(vid, GREEN, "Przestales byc Asasynem")
assasyn[vid] = false
set_user_rendering(vid, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)
}
if(radar[vid])
{
ColorChat(vid, GREEN, "Straciles Radar")
radar[vid] = false
}
if(modul[vid])
{
ColorChat(vid, GREEN, "Straciles Modul Odrzutowy")
modul[vid] = false
}
if(buty[vid])
{
ColorChat(vid, GREEN, "Straciles Gumioki")
buty[vid] = false
}
if(moze_skakac[vid])
{
ColorChat(vid, GREEN, "Straciles Kalczuki")
moze_skakac[vid] = false
skoki[vid] = 0
}
return PLUGIN_CONTINUE
}
public CurWeapon(id)
{
if(!is_player(id) || !is_user_alive(id))
return PLUGIN_CONTINUE
new weapon = get_user_weapon(id)
if(assasyn[id])
{
if(weapon != CSW_C4)
engclient_cmd(id, "weapon_knife")
}
return PLUGIN_CONTINUE
}
public radar_scan() {
for(new id=1; id<=32; id++) {
if(!is_user_alive(id) || !radar[id]) continue;
for(new i=1; i<=32; i++) {
if(!is_user_alive(i) || id == i || get_user_team(id) == get_user_team(i)) continue;
new PlayerCoords[3];
get_user_origin(i, PlayerCoords);
message_begin(MSG_ONE_UNRELIABLE, g_msgHostageAdd, _, id);
write_byte(id);
write_byte(i);
write_coord(PlayerCoords[0]);
write_coord(PlayerCoords[1]);
write_coord(PlayerCoords[2]);
message_end();
message_begin(MSG_ONE_UNRELIABLE, g_msgHostageDel, _, id);
write_byte(i);
message_end();
}
}
}
public SpawnGracza(id)
{
if(!is_player(id) || !is_user_alive(id))
return FMRES_IGNORED
if(assasyn[id])
set_task(3.0, "AssasynMode", id)
else
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)
return FMRES_IGNORED
}
case 5:
{
client_cmd(id, "say /minigun");
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
kusza: /xbow
minigun: /mg
miotacz ognia: /buyft
SMA sklepu:
/* Script generated by Pawn Studio */
#include <amxmodx>
#include <fakemeta>
#include <cstrike>
#include <fun>
#include <colorchat>
#include <engine>
//#define HUD set_hudmessage(230, 0, 255, 0.2, 0.2, 0, 6.0, 20.0)
#define PLUGIN "Sklep 4FUN"
#define AUTHOR "Pusty [b] wszystko zlaczyl w 1 plug"
#define VERSION "1.0"
new bool:assasyn[33], bool:radar[33], bool:modul[33], bool:buty[33], bool:moze_skakac[33], skoki[33]
new g_msgHostageAdd, g_msgHostageDel; // radar
//new HudMsg
new Float:ostatni_skok[33];
stock bool:is_player(id)
{
if(is_user_connected(id) || is_user_connecting(id))
return true
return false
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /sklep", "Sklep")
register_cvar("fun_assasyn", "7500")
register_cvar("fun_radar", "8000")
register_cvar("fun_modul", "5000")
register_cvar("fun_buty", "3500")
register_cvar("fun_skok", "2500")
register_event("DeathMsg", "Smierc", "ade")
register_event("CurWeapon", "CurWeapon", "be", "1=1");
register_forward(FM_Spawn, "SpawnGracza", 1)
// radar
g_msgHostageAdd = get_user_msgid("HostagePos");
g_msgHostageDel = get_user_msgid("HostageK");
set_task(1.0, "radar_scan", _, _, _, "b"); // radar
//HudMsg = CreateHudSyncObj()
}
public Sklep(id)
{
new opcja1[100]
new opcja2[100]
new opcja3[100]
new opcja4[100]
new opcja5[100]
format(opcja1, charsmax(opcja1), "Asasyn\y(Stajesz sie Asasynem)\r[\yKoszt:\w %i\r]", get_cvar_num("fun_assasyn"))
format(opcja2, charsmax(opcja2), "Radar\y(Na radaze widzisz wrogow)\r[\yKoszt:\w %i\r]", get_cvar_num("fun_radar"))
format(opcja3, charsmax(opcja3), "Modul Odrzutowy\y(Skocz i Kucnij aby uzyc)\r[\yKoszt:\w %i\r]", get_cvar_num("fun_modul"))
format(opcja4, charsmax(opcja4), "Gumioki\y(Chodzisz cicho)\r[\yKoszt:\w %i\r]", get_cvar_num("fun_buty"))
format(opcja5, charsmax(opcja5), "Kalczuki\y(4 dodatkowe skoki)\r[\yKoszt:\w %i\r]", get_cvar_num("fun_skok"))
new menu = menu_create("\rSklep 4FUN by Pusty[b]", "SklepHandle")
menu_additem(menu, opcja1, "1")
menu_additem(menu, opcja2, "2")
menu_additem(menu, opcja3, "3")
menu_additem(menu, opcja4, "4")
menu_additem(menu, opcja5, "5")
menu_addtext(menu, "\yWszystkie umiejetnosci dzialaja do \rsmierci!")
menu_display(id, menu)
}
public SklepHandle(id, menu, item)
{
if(!is_player(id) || !is_user_alive(id))
return PLUGIN_CONTINUE
new kasa = cs_get_user_money(id)
new name[35]
get_user_name(id, name, 34)
switch(item)
{
case 0:
{
if(assasyn[id])
{
ColorChat(id, GREEN, "Jestes juz asasynem")
return PLUGIN_HANDLED
}
if(kasa >= get_cvar_num("fun_assasyn"))
{
ColorChat(id, GREEN, "Gracz %s stal sie asasynem", name)
AssasynMode(id)
cs_set_user_money(id, kasa-get_cvar_num("fun_assasyn"))
}
else
{
ColorChat(id, GREEN, "Nie stac cie")
return PLUGIN_HANDLED
}
}
case 1:
{
if(radar[id])
{
ColorChat(id, GREEN, "Masz juz Radar")
return PLUGIN_HANDLED
}
if(kasa >= get_cvar_num("fun_radar"))
{
ColorChat(id, GREEN, "Gracz %s widzi wrogow na radarze", name)
radar[id] = true
cs_set_user_money(id, kasa-get_cvar_num("fun_radar"))
}
else
{
ColorChat(id, GREEN, "Nie stac cie")
return PLUGIN_HANDLED
}
}
case 2:
{
if(modul[id])
{
ColorChat(id, GREEN, "Masz juz Modul Odrzutowy")
return PLUGIN_HANDLED
}
if(kasa >= get_cvar_num("fun_modul"))
{
ColorChat(id, GREEN, "Gracz %s ma Modul Odrzutowy", name)
modul[id] = true
cs_set_user_money(id, kasa-get_cvar_num("fun_modul"))
}
else
{
ColorChat(id, GREEN, "Nie stac cie")
return PLUGIN_HANDLED
}
}
case 3:
{
if(buty[id])
{
ColorChat(id, GREEN, "Masz juz Gumioki")
return PLUGIN_HANDLED
}
if(kasa >= get_cvar_num("fun_buty"))
{
ColorChat(id, GREEN, "Gracz %s ma Gumioki", name)
buty[id] = true
Gumioki(id)
cs_set_user_money(id, kasa-get_cvar_num("fun_buty"))
}
else
{
ColorChat(id, GREEN, "Nie stac cie")
return PLUGIN_HANDLED
}
}
case 4:
{
if(skoki[id])
{
ColorChat(id, GREEN, "Masz juz Kalczuki")
return PLUGIN_HANDLED
}
if(kasa >= get_cvar_num("fun_skok"))
{
ColorChat(id, GREEN, "Gracz %s ma Kalczuki", name)
moze_skakac[id] = true
cs_set_user_money(id, kasa-get_cvar_num("fun_skok"))
}
else
{
ColorChat(id, GREEN, "Nie stac cie")
return PLUGIN_HANDLED
}
}
}
return PLUGIN_CONTINUE
}
public AssasynMode(id)
{
if(!is_player(id) || !is_user_alive(id))
return PLUGIN_CONTINUE
assasyn[id] = true
set_user_health(id, 150)
engclient_cmd(id, "weapon_knife")
return PLUGIN_CONTINUE
}
public Gumioki(id)
{
if(!is_player(id) || !is_user_alive(id))
return PLUGIN_CONTINUE
set_user_footsteps(id, 0)
return PLUGIN_CONTINUE
}
public client_PreThink(id)
{
if(!is_player(id) || !is_user_alive(id))
return PLUGIN_CONTINUE
new button = get_user_button(id);
new oldbutton = get_user_oldbutton(id)
new flags = pev(id, pev_flags);
if(assasyn[id] == true)
{
set_user_rendering(id,kRenderFxGlowShell,0,0,0 ,kRenderTransAlpha, 15);
set_user_gravity(id, 0.25)
}
if(modul[id])
{
if(button & IN_JUMP && button & IN_DUCK)
{
if(get_gametime() > ostatni_skok[id]+4.0)
{
ostatni_skok[id] = get_gametime();
new Float:velocity[3];
velocity_by_aim(id, 666, velocity);
velocity[2] = random_float(265.0,285.0);
set_pev(id, pev_velocity, velocity);
}
}
}
if((button & IN_JUMP) && !(flags & FL_ONGROUND) && !(oldbutton & IN_JUMP) && skoki[id])
{
skoki[id]--
new Float:velocity[3];
pev(id, pev_velocity, velocity);
velocity[2] = random_float(265.0,285.0);
set_pev(id, pev_velocity, velocity);
}
else if(flags & FL_ONGROUND && moze_skakac[id])
skoki[id] = 4;
return PLUGIN_CONTINUE
}
public Smierc()
{
new kid = read_data(1)
new vid = read_data(2)
if(!is_player(kid) || !is_user_alive(kid))
return PLUGIN_CONTINUE
if(assasyn[vid])
{
ColorChat(vid, GREEN, "Przestales byc Asasynem")
assasyn[vid] = false
set_user_rendering(vid, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)
}
if(radar[vid])
{
ColorChat(vid, GREEN, "Straciles Radar")
radar[vid] = false
}
if(modul[vid])
{
ColorChat(vid, GREEN, "Straciles Modul Odrzutowy")
modul[vid] = false
}
if(buty[vid])
{
ColorChat(vid, GREEN, "Straciles Gumioki")
buty[vid] = false
}
if(moze_skakac[vid])
{
ColorChat(vid, GREEN, "Straciles Kalczuki")
moze_skakac[vid] = false
skoki[vid] = 0
}
return PLUGIN_CONTINUE
}
public CurWeapon(id)
{
if(!is_player(id) || !is_user_alive(id))
return PLUGIN_CONTINUE
new weapon = get_user_weapon(id)
if(assasyn[id])
{
if(weapon != CSW_C4)
engclient_cmd(id, "weapon_knife")
}
return PLUGIN_CONTINUE
}
public radar_scan() {
for(new id=1; id<=32; id++) {
if(!is_user_alive(id) || !radar[id]) continue;
for(new i=1; i<=32; i++) {
if(!is_user_alive(i) || id == i || get_user_team(id) == get_user_team(i)) continue;
new PlayerCoords[3];
get_user_origin(i, PlayerCoords);
message_begin(MSG_ONE_UNRELIABLE, g_msgHostageAdd, _, id);
write_byte(id);
write_byte(i);
write_coord(PlayerCoords[0]);
write_coord(PlayerCoords[1]);
write_coord(PlayerCoords[2]);
message_end();
message_begin(MSG_ONE_UNRELIABLE, g_msgHostageDel, _, id);
write_byte(i);
message_end();
}
}
}
public SpawnGracza(id)
{
if(!is_player(id) || !is_user_alive(id))
return FMRES_IGNORED
if(assasyn[id])
set_task(3.0, "AssasynMode", id)
else
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)
return FMRES_IGNORED
}
case 5:
{
client_cmd(id, "say /minigun");
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
W temacie: Dodawanie rzeczy do sklepu
17.04.2012 07:38
Dopisałem tak do cvarów i nadal minigun nie pojawia się na liście sklepu.
- AMXX.pl: Support AMX Mod X i SourceMod
- → Przeglądanie profilu: Posty: Overlord210
- Regulamin