Mam taki problem,że ciche buty są za darmo dla ct i TT
Proszę o przerobienie aby były za 5tysięcy a noclip za 15tysięcy
/* Plugin by naven, by fiodor7 and Jankoxd */
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#define PLUGIN "JailBreak Shop"
#define VERSION "1.1"
#define AUTHOR "naven"
new name [32];
new speed[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /jbshop", "jbshop")
register_event( "CurWeapon", "Event_Change_Weapon", "be", "1=1" );
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1)
}
public jbshop(id){
new menu = menu_create("\yJailBreak Shopmenu","menu")
menu_additem(menu,"\wCiche buty 5000$","1",0)
menu_additem(menu,"\wSzybkie buty 16000$","2",0)
menu_additem(menu,"\wSprezynowe buty 7000$","3",0)
menu_additem(menu,"\wPaczka granatow 5000$","4",0)
menu_additem(menu,"\wWzmacniacz 5000$","5",0)
menu_additem(menu,"\wPrzenikanie przez sciany 5000$","6",0)
menu_additem(menu,"\wNiesmiertelnosc przez 5 sekund 16000$","7",ADMIN_KICK)
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 :{
set_user_footsteps(id, 1)
}
case 2 :{
if (cs_get_user_money(id) < 16000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 16000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil szybkie buty", name)
speed[id] = 1;
set_user_maxspeed(id, 500.0)
cs_set_user_money(id , cs_get_user_money(id) - 5000, 0)
}
}
case 3 : {
if (cs_get_user_money(id) < 7000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 7000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil sprezynowe buty", name)
set_user_gravity(id, 0.5)
cs_set_user_money(id , cs_get_user_money(id) - 5000, 0)
}
}
case 4 : {
if (cs_get_user_money(id) < 5000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 5000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil paczke granatow", name)
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
cs_set_user_money(id , cs_get_user_money(id) - 5000, 0)
}
}
case 5 :{
if (cs_get_user_money(id) < 5000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 5000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil wzmacniacz", name)
set_user_armor(id, 200)
cs_set_user_money(id , cs_get_user_money(id) - 5000, 0)
}
}
case 6 :{
if (cs_get_user_money(id) < 5000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 5000 ){
get_user_name(id, name, 31)
set_user_noclip(id, 1)
ColorChat(0, GREEN, "%s ^x03kupil noclip na 3 sekundy", name)
set_task(3.0, "clipoff", id)
cs_set_user_money(id , cs_get_user_money(id) - 5000, 0)
}
}
case 7 :{
if (cs_get_user_money(id) < 16000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 16000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil godmode dla admina na 5 sekund!", name)
set_user_godmode(id, 1)
set_task(5.0, "godoff", id)
cs_set_user_money(id , cs_get_user_money(id) - 16000, 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 clipoff(id)
{
set_user_noclip(id)
}
public godoff(id)
{
set_user_godmode(id)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1045{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
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
Problem z jailbreak shop
Temat rozp.
Zapomniany
, 04.06.2011 09:43
4 odpowiedzi w tym temacie
#2
Napisano 04.06.2011 14:33
Automatyczna wiadomość
Ten temat został przeniesiony z forum:
AMX Mod X -> Problemy z pluginami
do
Scripting -> Pluginy
Ten temat został przeniesiony z forum:
AMX Mod X -> Problemy z pluginami
do
Scripting -> Pluginy
#3
Napisano 04.06.2011 15:49
okaleczyłeś ten kod sadysto!
Załączone pliki
#4
Napisano 04.06.2011 16:02
Witam, następnym razem zamieść kod między klamrami [.sma][./sma] (znaczek amxx'a)
Pliki w załączniku.
Wysłałem amxx i sma.
Pliki w załączniku.
Wysłałem amxx i sma.
Załączone pliki
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych