Witam . Proszę , aby ktokolwiek zmienił tutaj wszystkie wymagane flagi na flagę D (np. amx_revive - wymagana flaga d)
LINK
20 sierpień 2010 - 11:45:
Odświeżam !
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
Siudzix
Rejestracja: 20.09.2009Aktualnie: Nieaktywny
Poza forum Ostatnio: 08.09.2014 18:24





Statystyki
- Grupa: Użytkownik
- Całość postów: 11
- Odwiedzin: 1 894
- Tytuł: Początkujący
- Wiek: 31 lat
- Urodziny: Kwiecień 15, 1994
-
Płeć
Nie podano
-
Lokalizacja
Świecie
-
Zainteresowania
CS , Trance & Techno Music
1
Nowy
Narzędzia użytkownika
Znajomi
Siudzix nie posiada znajomych
Moje tematy
Zmiana flag .
14.08.2010 15:40
Dodanie niewidzialności .
28.07.2010 14:41
Witam . Chciałbym , aby ktoś dodał do tego pluginu ( w załączniku ) niewidzialność za 16000$ . Dziękuję bardzo .
Kompilacja .
20.07.2010 14:28
Cześć . Czy mógłby ktoś skompilować ten plugin : Dziękuję
Spoiler
/* 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 8000$","5",0)
menu_additem(menu,"\wPrzenikanie przez sciany 16000$","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 : {
id (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;
}
id (!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 ciche buty", name)
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) - 16000, 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) - 7000, 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) < 8000){
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) >= 8000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil wzmacniacz", name)
set_user_armor(id, 200)
set_user_health(id, health + 50)
cs_set_user_money(id , cs_get_user_money(id) - 8000, 0)
}
}
case 6 :{
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)
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) - 16000, 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 }
*/
#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 8000$","5",0)
menu_additem(menu,"\wPrzenikanie przez sciany 16000$","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 : {
id (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;
}
id (!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 ciche buty", name)
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) - 16000, 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) - 7000, 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) < 8000){
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) >= 8000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil wzmacniacz", name)
set_user_armor(id, 200)
set_user_health(id, health + 50)
cs_set_user_money(id , cs_get_user_money(id) - 8000, 0)
}
}
case 6 :{
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)
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) - 16000, 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 }
*/
Przerobienie JailBreak Shop
20.07.2010 10:39
Witam . Chciałbym prosić o to , aby w tym pluginie zostało dodane zabijanie , jeżeli ktoś zostanie w ścianie używając NoClip'a . Dziękuję bardzo :
Spoiler
/* 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 8000$","5",0)
menu_additem(menu,"\wPrzenikanie przez sciany 16000$","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 : {
id (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;
}
id (!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 ciche buty", name)
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) - 16000, 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) - 7000, 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) < 8000){
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) >= 8000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil wzmacniacz", name)
set_user_armor(id, 200)
set_user_health(id, health + 50)
cs_set_user_money(id , cs_get_user_money(id) - 8000, 0)
}
}
case 6 :{
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)
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) - 16000, 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 }
*/
#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 8000$","5",0)
menu_additem(menu,"\wPrzenikanie przez sciany 16000$","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 : {
id (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;
}
id (!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 ciche buty", name)
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) - 16000, 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) - 7000, 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) < 8000){
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) >= 8000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil wzmacniacz", name)
set_user_armor(id, 200)
set_user_health(id, health + 50)
cs_set_user_money(id , cs_get_user_money(id) - 8000, 0)
}
}
case 6 :{
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)
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) - 16000, 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 }
*/
- AMXX.pl: Support AMX Mod X i SourceMod
- → Przeglądanie profilu: Tematy: Siudzix
- Regulamin