LOLY
Mesaje : 91 Data de înscriere : 04/08/2015
| Subiect: [Plugin] /shop Joi Sept 10, 2015 1:01 pm | |
| Nume : Shop by LOLY v1 Comenzii : /shop in chat pe y Despre : Acest plugin ajuta dr inpic , poti lua viata, deagle ..... uitati .sma : - drshop_5.sma:
#include <amxmodx> #include <cstrike> #include <fun> #include <engine>
new g_Menu;
public plugin_init() { register_plugin("DrShop", "0.1", "LOLY");
g_Menu = register_menuid("DeathRun Shop"); register_menucmd(g_Menu, 1023, "drshop");
register_clcmd("say /shop","cmdShop",-1,"<cumperi diverse lucruri>"); }
public cmdShop(id) { new menuBody[512];
add(menuBody, 511, "\rMagazinul CS.XTREME.RO\w^n^n"); add(menuBody, 511, "\r1. \wHe \y(Pret:0$)\w^n"); add(menuBody, 511, "\r2. \wFlash \y(Pret:0$)\w^n"); add(menuBody, 511, "\r3. \wDeagle \y(Pret:0$)\w^n"); add(menuBody, 511, "\r4. \wSpeed \y(Pret:0$)\w^n"); add(menuBody, 511, "\r5. \wGravitatie \y(Pret:0$)\w^n"); add(menuBody, 511, "\r6. \wInvizibilitate \y(Pret:3$)\w^n"); add(menuBody, 511, "\r7. \wViata \y(Pret:0$)\w^n"); add(menuBody, 511, "\r8. \wNoClip \y(Pret:0$)\w^n"); add(menuBody, 511, "\r0. \wExit^n");
new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<6 | 1<<7 | 1<<8 | 1<<9); show_menu(id, keys, menuBody, -1, "DeathRun Shop"); }
public drshop(id, key) { switch(key) { case 0: { new bani,banif; bani = cs_get_user_money(id); if(bani < 0) { chat_color(id,"!g[Deathrun] !yAi nevoie de !g0$"); return PLUGIN_HANDLED; }
banif = bani - 0; cs_set_user_money(id,banif); chat_color(id,"!g[Deathrun] !yAi cumparat o grenada !gHe! !yAi ramas cu !g%d$",banif); give_item(id,"weapon_hegrenade"); } case 1: { new bani,banif; bani = cs_get_user_money(id); if(bani < 0) { chat_color(id,"!g[Deathrun] !yAi nevoie de !g0$"); return PLUGIN_HANDLED; }
banif = bani - 0; cs_set_user_money(id,banif); chat_color(id,"!g[Deathrun] !yAi cumparat o grenada !gFlashBang! !yAi ramas cu !g%d$",banif); give_item(id,"weapon_flashbang"); } case 2: { new bani,banif; bani = cs_get_user_money(id); if(bani < 0) { chat_color(id,"!g[Deathrun] !yAi nevoie de !g0$"); return PLUGIN_HANDLED; }
banif = bani - 0; cs_set_user_money(id,banif); chat_color(id,"!g[Deathrun] !yAi cumparat un !gDeagle! !yAi ramas cu !g%d$",banif); give_item(id,"weapon_deagle"); } case 3: { new bani,banif; bani = cs_get_user_money(id); if(bani < 0) { chat_color(id,"!g[Deathrun] !yAi nevoie de !g0$"); return PLUGIN_HANDLED; }
banif = bani - 0; cs_set_user_money(id,banif); chat_color(id,"!g[Deathrun] !yAi cumparat !gViteza! !yAi ramas cu !g%d$",banif);
new Float:speed = get_user_maxspeed(id) + 125.0; set_user_maxspeed(id,speed); } case 4: { new bani,banif; bani = cs_get_user_money(id); if(bani < 0) { chat_color(id,"!g[Deathrun] !yAi nevoie de !g0$"); return PLUGIN_HANDLED; }
banif = bani - 0; cs_set_user_money(id,banif); chat_color(id,"!g[Deathrun] !yAi cumparat !gGravitatie! !yAi ramas cu !g%d$",banif); set_user_gravity(id,0.4); } case 5: { new bani,banif; bani = cs_get_user_money(id); if(bani < 3) { chat_color(id,"!g[Deathrun] !yAi nevoie de !g3$"); return PLUGIN_HANDLED; }
banif = bani - 3; cs_set_user_money(id,banif); chat_color(id,"!g[Deathrun] !yAi cumparat !gInvizibilitate! !yAi ramas cu !g%d$",banif); set_entity_visibility(id, 0); } case 6: { new bani,banif; bani = cs_get_user_money(id); if(bani < 0) { chat_color(id,"!g[Deathrun] !yAi nevoie de !g0$"); return PLUGIN_HANDLED; }
banif = bani - 0; new viata =get_user_health(id); set_user_health(id,viata+1000); chat_color(id,"!g[Deathrun] !yAi cumparat !g1000Hp! !yAi ramas cu !g%d$",banif); } case 7: { new bani,banif; bani = cs_get_user_money(id); if(bani < 0) { chat_color(id,"!g[Deathrun] !yAi nevoie de !g0$"); return PLUGIN_HANDLED; }
banif = bani - 0; cs_set_user_money(id,banif); chat_color(id,"!g[Deathrun] !yAi cumparat !gNoClip !ypentru !g7 secunde! !yAi ramas cu !g%d$",banif); set_user_noclip(id,1); set_task(7.0,"removeInvis",id); } default: return PLUGIN_HANDLED; } return PLUGIN_HANDLED; }
public removeInvis(id) { set_user_noclip(id,0); }
stock chat_color(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4") replace_all(msg, 190, "!y", "^1") replace_all(msg, 190, "!team", "^3")
if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } } }
Download Link daca nu va descurcati cu .sma-ul : link Asta a fost . | |
|
Majestic ; Admin
Mesaje : 285 Data de înscriere : 04/08/2015
| Subiect: Re: [Plugin] /shop Joi Sept 10, 2015 2:52 pm | |
| Multumim , o sa adaug un loc special unde puteti uploada direct ceva pe el . | |
|
LOLY
Mesaje : 91 Data de înscriere : 04/08/2015
| Subiect: Re: [Plugin] /shop Joi Sept 10, 2015 5:46 pm | |
| - DANIEL//. a scris:
- Multumim , o sa adaug un loc special unde puteti uploada direct ceva pe el .
Ok , dar unde? (ziceam) | |
|
Majestic ; Admin
Mesaje : 285 Data de înscriere : 04/08/2015
| Subiect: Re: [Plugin] /shop Joi Sept 10, 2015 5:50 pm | |
| Aici in sectiunea de Resurse ! Momentan sunt ocupat cu Design ! Cand termin o sa il pun ! | |
|
LOLY
Mesaje : 91 Data de înscriere : 04/08/2015
| Subiect: Re: [Plugin] /shop Joi Sept 10, 2015 5:53 pm | |
| | |
|
Majestic ; Admin
Mesaje : 285 Data de înscriere : 04/08/2015
| Subiect: Re: [Plugin] /shop Joi Sept 10, 2015 5:56 pm | |
| | |
|