User
Pass
2FA
 
 

Cerere armura pt VIP menu

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message781
JuNNky

[Mentally Stable]



Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83, Topics: 17
Location: Romania

Reputation: 6.8

Post Posted: 03-08-2015, 18:13:31 | Translate post to: ... (Click for more languages)

Salut! Imi poate midifica cineva acest sma ca sa fie pt mniul vip si sa ofere 250 armura pt 10 ammo in loc de 100?

Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <colorchat>

new const g_item_name[] = { "Armor \y(100ap)" }
const g_item_cost = 5

new const g_sound_buyarmor[] = { "items/tr_kevlar.wav" }
const g_armor_amount = 100
const g_armor_limit = 999

// Item IDs
new g_itemid_humanarmor

public plugin_precache()
{
   precache_sound(g_sound_buyarmor)
}

public plugin_init()
{
   register_plugin("[ZP] Extra: Anti-Infection Armor", "1.1", "BlackRaven")
   
   g_itemid_humanarmor = zp_register_extra_item(g_item_name, g_item_cost, ZP_TEAM_HUMAN)
}

// Human buys our upgrade, give him some armor
public zp_extra_item_selected(player, itemid)
{
      if (itemid == g_itemid_humanarmor)
      {
      set_pev(player, pev_armorvalue, float(min(pev(player, pev_armorvalue)+g_armor_amount, g_armor_limit)))
      engfunc(EngFunc_EmitSound, player, CHAN_BODY, g_sound_buyarmor, 1.0, ATTN_NORM, 0, PITCH_NORM)
      new player_x[32]
      get_user_name(player, player_x, 31)      
      ColorChat(0, GREY, "^4[ZP] ^3%s ^1just bought ^4Armor (100ap)",player_x)
      }
}

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, "!t", "^3")
    replace_all(msg, 190, "!t2", "^0")

    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\\ lang1062\\ f0\\ fs16 \n\\ par }
*/

0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 03-08-2015, 18:52:27 | Translate post to: ... (Click for more languages)

Modifici aici
const g_armor_amount = 100
si pui 250
si aici
const g_item_cost = 5
pui 10



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
JuNNky

[Mentally Stable]



Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83, Topics: 17
Location: Romania

Reputation: 6.8

Post Posted: 03-08-2015, 18:59:08 | Translate post to: ... (Click for more languages)

@D3luxe eu vreau sa fie vip only , sa o adaug in meniul VIP -
0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 03-08-2015, 19:03:28 | Translate post to: ... (Click for more languages)

Ops.. Am citit printre randuri -
Poftim.
Spoiler:



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
JuNNky

[Mentally Stable]



Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83, Topics: 17
Location: Romania

Reputation: 6.8

Post Posted: 03-08-2015, 19:20:35 | Translate post to: ... (Click for more languages)

@D3luxe :

Code:
zp_vip_extra_human_armor.sma(25) : error 035: argument type mismatch (argument 2)
zp_vip_extra_human_armor.sma(41) : error 010: invalid function or declaration
zp_vip_extra_human_armor.sma(47) : error 021: symbol already defined: "vformat"
zp_vip_extra_human_armor.sma(49) : error 025: function heading differs from prototype
zp_vip_extra_human_armor.sma(50) : error 021: symbol already defined: "replace_all"
zp_vip_extra_human_armor.sma(50) : error 035: argument type mismatch (argument 1)
zp_vip_extra_human_armor.sma(52) : error 021: symbol already defined: "replace_all"
zp_vip_extra_human_armor.sma(52) : error 035: argument type mismatch (argument 1)
zp_vip_extra_human_armor.sma(54) : warning 209: function "replace_all" should return a value
zp_vip_extra_human_armor.sma(54) : warning 203: symbol is never used: "msg"
zp_vip_extra_human_armor.sma(54) : error 010: invalid function or declaration
zp_vip_extra_human_armor.sma(56) : error 010: invalid function or declaration
zp_vip_extra_human_armor.sma(58) : error 010: invalid function or declaration
zp_vip_extra_human_armor.sma(67) : warning 203: symbol is never used: "count"
zp_vip_extra_human_armor.sma(67) : warning 203: symbol is never used: "msg"
zp_vip_extra_human_armor.sma(67) : warning 203: symbol is never used: "players"

0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 03-08-2015, 19:28:27 | Translate post to: ... (Click for more languages)

- poftim nu am vazut ca in plugin e stock si nu mai trebuie inclus colorchat also acm ar trebui sa mearga.
Spoiler:



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
JuNNky

[Mentally Stable]



Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83, Topics: 17
Location: Romania

Reputation: 6.8

Post Posted: 03-08-2015, 19:40:40 | Translate post to: ... (Click for more languages)

@D3luxe :

Code:
zp_vip_extra_human_armor.sma(19) : error 035: argument type mismatch (argument 2)
zp_vip_extra_human_armor.sma(31) : error 017: undefined symbol "chat_color"
zp_vip_extra_human_armor.sma(35) : error 010: invalid function or declaration
zp_vip_extra_human_armor.sma(41) : error 021: symbol already defined: "vformat"
zp_vip_extra_human_armor.sma(43) : error 025: function heading differs from prototype
zp_vip_extra_human_armor.sma(44) : error 021: symbol already defined: "replace_all"
zp_vip_extra_human_armor.sma(44) : error 035: argument type mismatch (argument 1)
zp_vip_extra_human_armor.sma(46) : error 021: symbol already defined: "replace_all"
zp_vip_extra_human_armor.sma(46) : error 035: argument type mismatch (argument 1)
zp_vip_extra_human_armor.sma(48) : warning 209: function "replace_all" should return a value
zp_vip_extra_human_armor.sma(48) : warning 203: symbol is never used: "msg"
zp_vip_extra_human_armor.sma(48) : error 010: invalid function or declaration
zp_vip_extra_human_armor.sma(50) : error 010: invalid function or declaration
zp_vip_extra_human_armor.sma(52) : error 010: invalid function or declaration
zp_vip_extra_human_armor.sma(61) : warning 203: symbol is never used: "count"
zp_vip_extra_human_armor.sma(61) : warning 203: symbol is never used: "msg"
zp_vip_extra_human_armor.sma(61) : warning 203: symbol is never used: "players"

0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 03-08-2015, 19:42:14 | Translate post to: ... (Click for more languages)

Mie imi merge compilat ....


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
JuNNky

[Mentally Stable]



Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83, Topics: 17
Location: Romania

Reputation: 6.8

Post Posted: 03-08-2015, 20:10:25 | Translate post to: ... (Click for more languages)

@D3luxe imi pui un link de download te rog...?
0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 03-08-2015, 20:18:47 | Translate post to: ... (Click for more languages)

Poftim ->
http://www.girlshare.ro/34992002.1
vezi daca merge sma-ul asta.
Spoiler:



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
JuNNky

[Mentally Stable]



Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83, Topics: 17
Location: Romania

Reputation: 6.8

Post Posted: 03-08-2015, 20:31:27 | Translate post to: ... (Click for more languages)

Topic close va rog -
0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by destroi112, 07 August 2015 20:34



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 03-10-2024, 05:25:44
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password