proszę o pomoc z pluginem.
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
[ROZWIĄZANE] bład podczas komp. pluginu
Temat rozp. Zbysio, 06.06.2013 19:09
3 odpowiedzi w tym temacie
#2
Napisano 06.06.2013 19:21
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <engine>
#define PLUGIN "Mini Shop JailBreak"
#define VERSION "1.0"
#define AUTHOR ""
new name [32];
new speed[33];
new bool:weapon_id;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /gangshop", "jbshop")
register_clcmd("say /gshop", "jbshop")
register_event( "CurWeapon", "Event_Change_Weapon", "be", "1=1" );
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1)
}
public jbshop(id){
if(is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_T)
if (get_user_flags(id) & ADMIN_LEVEL_H)
{
new menu = menu_create("\rShop Gangster by Zbysio","menu")
menu_additem(menu,"\yMiekkie Pantofelki \d[3000$]","1",0)
menu_additem(menu,"\yButy Nike \d[12000$]","2",0)
menu_additem(menu,"\yButy Skoczka \d[6000$]","3",0)
menu_additem(menu,"\yDeagle z 1 ammo \d[14000$]","4",0)
menu_additem(menu,"\yHE \d[8000$]","5",0)
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
}
public menu(id, menu, item){
if(item==MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED;
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1 :{
if (cs_get_user_money(id) < 3000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03Nie masz wystarczajaca hajsu!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, BLUE, "%s ^x03Tylko zywi moga kupowac!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 3000 ){
get_user_name(id, name, 31)
set_user_footsteps( id, 1)
ColorChat(0, RED, "Gangter przemycil Miekkie Pantofelki, Dzięki ktorym nie slychac twoich krokow.", name)
cs_set_user_money(id , cs_get_user_money(id) - 3000, 0)
}
}
case 2 :{
if (cs_get_user_money(id) < 12000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03Nie masz wystarczajaca hajsu!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, BLUE, "%s ^x03Tylko zywi moga kupowac!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 12000 ){
get_user_name(id, name, 31)
ColorChat(0, RED, "Gangter przemycil Buty Zbysia, Dzięki ktorym mozesz szybciej biegac.", name)
speed[id] = 1;
set_user_maxspeed(id, 500.0)
cs_set_user_money(id , cs_get_user_money(id) - 12000, 0)
}
}
case 3 : {
if (cs_get_user_money(id) < 6000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03Nie masz wystarczajaca hajsu!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, BLUE, "%s ^x03Tylko zywi moga kupowac!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 6000 ){
get_user_name(id, name, 31)
ColorChat(0, RED, "Gangter przemycil Buty Ivera, Dzięki ktorym mozesz wyzej skakac.", name)
set_user_gravity(id, 0.5)
cs_set_user_money(id , cs_get_user_money(id) - 6000, 0)
}
}
case 4 : {
if (cs_get_user_money(id) < 14000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03Nie masz wystarczajaca hajsu!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, BLUE, "%s ^x03Tylko zywi moga kupowac!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 14000 ){
get_user_name(id, name, 31)
ColorChat(0, RED, "Gangter przemycil Deagle z 1 ammo", name)
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
weapon_id=find_ent_by_owner(-1, "weapon_deagle", id);
if(weapon_id)cs_set_weapon_ammo(weapon_id, 1);
cs_set_user_bpammo(id, CSW_DEAGLE, 0);
cs_set_user_money(id , cs_get_user_money(id) - 14000, 0)
}
}
case 5 :{
if (cs_get_user_money(id) < 8000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03Nie masz wystarczajaca hajsu!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, BLUE, "%s ^x03Tylko zywi moga kupowac!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 6000 ){
get_user_name(id, name, 31)
ColorChat(0, RED, "Gangter przemycil HE", name)
give_item(id, "weapon_hegrenade");
cs_set_user_money(id , cs_get_user_money(id) - 6000, 0)
}
}
}
return PLUGIN_HANDLED;
}
public Event_Change_Weapon(id){
if(speed[id] == 1){
set_user_maxspeed(id, 500.0)
}
}
public Fwd_PlayerSpawn_Post(id){
if (is_user_alive(id)){
if(!speed[id]){
speed[id] = 0;
}
set_user_footsteps(id, 0)
}
}
public godoff(id)
{
}
Użytkownik Pan Marian edytował ten post 06.06.2013 19:22
#4
Napisano 06.06.2013 21:01
Wiadomość wygenerowana automatycznie
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz,
raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz,
raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.Z pozdrowieniami,
Zespół AMXX.PL
Użytkownicy przeglądający ten temat: 1
0 użytkowników, 1 gości, 0 anonimowych


Dodatki SourceMod



Temat jest zamknięty
gangshop.amxx









