#include <amxmodx>
#define PLUGIN "Bron"
#define VERSION "1.0"
#define AUTHOR "Plantacja"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("bronsnajper", "bronsnajper")
register_clcmd("bronct", "bronct")
register_clcmd("brontt", "brontt")
public bronsnajper(id)
{
if(cs_get_user_money(id)>6000)
give_item ( id, "weapon_awp" )
give_item ( id, "weapon_ammo_338magnum")
give_item ( id, "weapon_ammo_338magnum")
give_item ( id, "weapon_ammo_338magnum")
give_item ( id, "weapon_weapon_deagle")
give_item ( id, "weapon_ammo_50ae")
give_item ( id, "weapon_ammo_50ae")
give_item ( id, "weapon_ammo_50ae")
give_item ( id, "weapon_ammo_50ae")
give_item ( id, "weapon_ammo_50ae")
give_item ( id, "weapon_hegrenade")
give_item ( id, "weapon_flashbang")
give_item ( id, "weapon_flashbang")
give_item ( id, "weapon_smokegrenade")
cs_get_user_armor(id, cs_armor_vesthelm = 2)
cs_set_user_money(id,cs_get_user_money(id) - 6000)
client_print ( id, print_chat, " Dostales Zestaw Snajpera - Straciles 6000 $")
client_print else ( id, print_chat, " Masz za malo kasy ")
}
public bronct(id)
{
if(cs_get_user_money(id)>4500)
give_item ( id, "weapon_m4a1")
give_item ( id, "weapon_ammo_556nato")
give_item ( id, "weapon_ammo_556nato")
give_item ( id, "weapon_ammo_556nato")
give_item ( id, "weapon_ammo_45acp")
give_item ( id, "weapon_ammo_45acp")
give_item ( id, "weapon_ammo_45acp")
give_item ( id, "weapon_ammo_45acp")
give_item ( id, "weapon_ammo_45acp")
give_item ( id, "weapon_ammo_45acp")
give_item ( id, "weapon_ammo_45acp")
give_item ( id, "weapon_hegrenade")
give_item ( id, "weapon_flashbang")
give_item ( id, "weapon_flashbang")
give_item ( id, "weapon_smokegrenade")
cs_get_user_armor(id, cs_armor_vesthelm = 2)
cs_set_user_money(id,cs_get_user_money(id) - 4500)
client_print (id, print_chat, " Dostales Zestaw Anty Terrorysty - Straciles 4500 $")
client_print else ( id, print_chat, " Masz za malo kasy ")
}
public brontt(id)
{
if(cs_get_user_money(id)>4500)
give_item ( id, "weapon_ak47")
give_item ( id, "weapon_ammo_762nato")
give_item ( id, "weapon_ammo_762nato")
give_item ( id, "weapon_ammo_762nato")
give_item ( id, "weapon_ammo_9mm")
give_item ( id, "weapon_ammo_9mm")
give_item ( id, "weapon_ammo_9mm")
give_item ( id, "weapon_ammo_9mm") give_item ( id, "weapon_hegrenade")
give_item ( id, "weapon_flashbang")
give_item ( id, "weapon_flashbang")
give_item ( id, "weapon_smokegrenade")
cs_get_user_armor(id, cs_armor_vesthelm = 2)
cs_set_user_money(id,cs_get_user_money(id) - 4500)
client_print (id, print_chat, " Dostales Zestaw Terrorysty - Straciles 4500 $")
client_print else ( id, print_chat, " Masz za malo kasy ")
}
Errors :
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team
bron.sma(15) : warning 217: loose indentation
bron.sma(15) : error 029: invalid expression, assumed zero
bron.sma(15) : error 017: undefined symbol "bronsnajper"
bron.sma(17) : error 017: undefined symbol "cs_get_user_money"
bron.sma(18) : error 017: undefined symbol "give_item"
bron.sma(18) : warning 215: expression has no effect
bron.sma(18) : error 001: expected token: ";", but found ")"
bron.sma(18) : error 029: invalid expression, assumed zero
bron.sma(18) : fatal error 107: too many error messages on one line
Compilation aborted.
7 Errors.
Proszę o pomoc . Głowiłem się ja i kolega ,ale sami sobie nie damy rady.
Acha . I chciałbym żeby ktoś mi powiedział jak zrobić ,by np /brontt ta komenda byla tylko dla tt /bronct tylko dla ct /bronsnajper dla tt i ct . Dziekuje
Proszę o pomoc . Dziękuje z góry.


Dodatki SourceMod



Temat jest zamknięty









