Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[rezolvat]Plugin ascundere
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Counter-Strike: Help zone
Author
Message
877
Aleex Armanu
[Detinator Server]
Status: Offline
(since 16-05-2022 10:06)
Joined: 25 Feb 2015
Posts: 2285
,
Topics: 267
Location:
Cluj Napoca
Reputation:
844.2
Votes
: 96
Posted: 29-03-2015, 21:38:28
| Translate post to:
... (
Click for more languages
)
Salut,
Am nevoie de un plugin care sa-mi ascunda mesajele cu shop.
P.S: Am cautat in anti furien menu dar nu am linia unde apare cand scrie.
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta_util>
#include <hamsandwich>
#define PLUGIN "Furien Shop Menu"
#define VERSION "1.1"
#define AUTHOR "ORION"
#define IsPlayer(%0) ( 1 <= %0 <= g_iMaxPlayers )
new g_iMaxPlayers;
new bool:superknife [ 33 ];
new v_superknife [ 66 ] = "models/fr_freakz/v_knife.mdl"; // Aici pui locatia modelului !
new const PICK_AMMO[] = "items/9mmclip1.wav";
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say shop", "ShopCmd");
register_clcmd( "say /shop", "ShopCmd");
register_clcmd( "say_team shop", "ShopCmd");
register_clcmd( "say_team /shop", "ShopCmd");
register_event("DeathMsg", "eDeath", "a")
register_event ( "CurWeapon", "CurrWeapon", "be", "1=1" );
RegisterHam ( Ham_TakeDamage, "player", "Player_TakeDamage" );
g_iMaxPlayers = get_maxplayers ( );
// Add your code here...
}
public eDeath ( ) {
if ( superknife [ read_data ( 2 ) ] ) {
superknife [ read_data ( 2 ) ] = false;
}
}
public plugin_precache ( ) {
//Super-Knife
precache_model ( v_superknife );
precache_sound(PICK_AMMO);
}
public client_disconnect ( id ) {
superknife[ id ] = false;
}
public CurrWeapon ( id ) {
if ( superknife [ id ] && get_user_weapon ( id ) == CSW_KNIFE ) {
set_pev ( id, pev_viewmodel2, v_superknife );
}
}
public ShopCmd(id) {
new iMoney = cs_get_user_money(id);
switch(get_user_team(id))
{
case 1:
{
new Titlu[101];
formatex(Titlu, 100, "\wFurien Shop^n\yBanii Tai:\r%d$", iMoney);
new ShopMenu = menu_create(Titlu, "weaponshandler");
if(iMoney < 10000) {
menu_additem(ShopMenu, "Super Knife \d10000$", "1", 0);
}
else
{
menu_additem(ShopMenu, "Super Knife \y10000$", "1", 0);
}
if(iMoney < 3000) {
menu_additem(ShopMenu, "50 \wHP \d3000$", "3", 0);
}
else
{
menu_additem(ShopMenu, "50 \wHP \y3000$", "3", 0);
}
if(iMoney < 3000) {
menu_additem(ShopMenu, "50\w AP \d500$", "4", 0);
}
else
{
menu_additem(ShopMenu, "50\w AP \y500$", "4", 0);
}
if(iMoney < 4000) {
menu_additem(ShopMenu, "HE Grenade \d4000$", "2", 0);
}
else
{
menu_additem(ShopMenu, "HE Grenade \y4000$", "2", 0);
}
menu_setprop(ShopMenu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, ShopMenu, 0);
}
case 2:
{
new Titlu[101];
formatex(Titlu, 100, "\yAnti-Furien Shop^n\yBanii Tai:\r%d$", iMoney);
new ShopMenu = menu_create( Titlu, "weaponshandler");
if(iMoney < 300) {
menu_additem(ShopMenu, "Defuse KIT \d500$", "1", 0);
}
else
{
menu_additem(ShopMenu, "Defuse KIT \y500$", "1", 0);
}
if(iMoney < 3000) {
menu_additem(ShopMenu, "50 \wHP \d3000$", "3", 0);
}
else
{
menu_additem(ShopMenu, "50 \wHP \y3000$", "3", 0);
}
if(iMoney < 3000) {
menu_additem(ShopMenu, "50\w AP \d500$", "4", 0);
}
else
{
menu_additem(ShopMenu, "50\w AP \y500$", "4", 0);
}
if(iMoney < 4000) {
menu_additem(ShopMenu, "He Grenade \d4000$", "2", 0);
}
else
{
menu_additem(ShopMenu, "He Grenade \y4000$", "2", 0);
}
menu_setprop(ShopMenu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, ShopMenu, 0);
}
}
return 1;
}
public weaponshandler(id, ShopMenu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(ShopMenu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(ShopMenu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
switch(key)
{
case 1:
{
switch(get_user_team(id))
{
case 1:
{
if(superknife[ id ]) {
ColorChat(id, "^x04[Shop]^x01 Ai deja Super-Knife.");
return 1;
}
else
{
new iMoney = cs_get_user_money(id) - 10000;
if(iMoney < 0) {
ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani pentru Super-Knife.");
}
else
{
emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
superknife[ id ] = true;
CurrWeapon(id);
cs_set_user_money(id, iMoney);
}
}
}
case 2:
{
new iMoney = cs_get_user_money(id) - 300;
if(iMoney < 0) {
ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani pentru Defuse-Kit.");
}
else
{
emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
fm_give_item ( id, "item_thighpack" );
cs_set_user_money(id, iMoney);
}
}
}
}
case 2:
{
switch(get_user_team(id))
{
case 1:
{
new iMoney = cs_get_user_money(id) - 4000;
if(iMoney < 0) {
ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani bani pentru He Grenade.");
}
else
{
emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
fm_give_item ( id, "weapon_hegrenade" );
cs_set_user_money(id, iMoney);
}
}
case 2:
{
new iMoney = cs_get_user_money(id) - 4000;
if(iMoney < 0) {
ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani pentru He Grenade.");
}
else
{
emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
fm_give_item ( id, "weapon_hegrenade" );
cs_set_user_money(id, iMoney);
}
}
}
}
case 3:
{
switch(get_user_team(id))
{
case 1:
{
new iMoney = cs_get_user_money(id) - 3000;
if(iMoney < 0) {
ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani pentru HP.");
}
else
{
new iHealth = get_user_health(id);
if(iHealth >= 250) {
ColorChat(id, "^x04[Shop]^x01 Ai atins limita maxima de HP.");
}
else
{
emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
fm_set_user_health(id, iHealth + 50);
cs_set_user_money(id, iMoney);
}
}
}
case 2:
{
new iMoney = cs_get_user_money(id) - 3000;
if(iMoney < 0) {
ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani pentru HP.");
}
else
{
new iHealth = get_user_health(id);
if(iHealth >= 250) {
ColorChat(id, "^x04[Shop]^x01 Ai atins limita maxima de HP.");
}
else
{
emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
fm_set_user_health(id, iHealth + 50);
cs_set_user_money(id, iMoney);
}
}
}
}
}
case 4:
{
switch(get_user_team(id))
{
case 1:
{
new iMoney = cs_get_user_money(id) - 3000;
if(iMoney < 0) {
ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani pentru AP.");
}
else
{
new iArmor = get_user_armor(id);
if(iArmor >= 300) {
ColorChat(id, "^x04[Shop]^x01 Ai atins limita maxima de AP.");
}
else
{
emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
fm_set_user_armor(id, iArmor + 50);
cs_set_user_money(id, iMoney);
}
}
}
case 2:
{
new iMoney = cs_get_user_money(id) - 3000;
if(iMoney < 0) {
ColorChat(id, "^x04[Shop]^x01 Nu ai suficienti bani pentru AP.");
}
else
{
new iArmor = get_user_armor(id);
if(iArmor >= 300) {
ColorChat(id, "^x04[Shop]^x01 Ai atins limita maxima de AP.");
}
else
{
emit_sound(id, CHAN_ITEM, PICK_AMMO, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);
fm_set_user_armor(id, iArmor + 50);
cs_set_user_money(id, iMoney);
}
}
}
}
}
}
menu_destroy(ShopMenu);
return PLUGIN_HANDLED;
}
public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits ) {
if ( IsPlayer ( iAttacker ) ) {
if( iInflictor == iAttacker && superknife [ iAttacker ] && is_user_alive( iAttacker ) && get_user_weapon( iAttacker ) == CSW_KNIFE && get_user_team( iAttacker ) == 1 ) {
SetHamParamFloat( 4, fDamage * 2.0);
return HAM_HANDLED;
}
}
return HAM_IGNORED;
}
stock ColorChat(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!x04", "^4");
replace_all(msg, 190, "!x01", "^1");
replace_all(msg, 190, "!x03", "^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();
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
ZOMBIE.FREAKZ.RO
#
INTERNATIONAL ZM
Last edited by
Aleex Armanu
on 29-03-2015, 22:21:47; edited 1 time in total
0
0
Back to top
-P!C@-
[Simply Normal]
Status: Offline
(since 21-04-2022 19:07)
Joined: 28 May 2012
Posts: 21086
,
Topics: 1601
Location:
Constanta
Reputation:
1870.3
Votes
: 781
Posted: 29-03-2015, 21:52:49
| Translate post to:
... (
Click for more languages
)
Incearca:
http://www.girlshare.ro/34614070.7
0
0
Back to top
Aleex Armanu
[Detinator Server]
Status: Offline
(since 16-05-2022 10:06)
Joined: 25 Feb 2015
Posts: 2285
,
Topics: 267
Location:
Cluj Napoca
Reputation:
844.2
Votes
: 96
Posted: 29-03-2015, 21:56:33
| Translate post to:
... (
Click for more languages
)
-P!C@- wrote:
Incearca:
http://www.girlshare.ro/34614070.7
imi poti da si sursa?
ZOMBIE.FREAKZ.RO
#
INTERNATIONAL ZM
0
0
Back to top
-P!C@-
[Simply Normal]
Status: Offline
(since 21-04-2022 19:07)
Joined: 28 May 2012
Posts: 21086
,
Topics: 1601
Location:
Constanta
Reputation:
1870.3
Votes
: 781
Posted: 29-03-2015, 21:58:52
| Translate post to:
... (
Click for more languages
)
Aleex Armanu wrote:
-P!C@- wrote:
Incearca:
http://www.girlshare.ro/34614070.7
imi poti da si sursa?
Ai sursa in pm.
0
0
Back to top
Aleex Armanu
[Detinator Server]
Status: Offline
(since 16-05-2022 10:06)
Joined: 25 Feb 2015
Posts: 2285
,
Topics: 267
Location:
Cluj Napoca
Reputation:
844.2
Votes
: 96
Posted: 29-03-2015, 22:24:24
| Translate post to:
... (
Click for more languages
)
Am pus pluginul la furien shop
ZOMBIE.FREAKZ.RO
#
INTERNATIONAL ZM
0
0
Back to top
EDUTz
[HardcoreAmxxScripter]
Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306
,
Topics: 244
Location:
Jud. Miserupia, sat Bagadanc
Reputation:
4085
Votes
: 179
Posted: 29-03-2015, 22:25:12
| Translate post to:
... (
Click for more languages
)
vezi pluginul asta pus de mine
https://forum.wow-freakz.com/PLUGIN-Ascunde-Text-t352361.html
Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM
0
0
Back to top
TwisTer
[GOOGLE SEARCHER]
Status: Offline
(since 28-05-2025 19:27)
Joined: 04 May 2007
Posts: 6962
,
Topics: 147
Location:
Romania
Reputation:
2774.4
Votes
: 232
Posted: 30-03-2015, 10:03:25
| Translate post to:
... (
Click for more languages
)
Pluginul lui edutz merge perfect.
Ai rezolvat?
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
destroi112
, 03 April 2015 18:14
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Counter-Strike: Help zone
The time now is 29-07-2025, 14:46:40
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details