User
Pass
2FA
 
 

Problema plugin happy our Vip free
Go to page 1, 2  Next    
 
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) -> Fixed issues
Author Message4553
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 13-08-2015, 11:58:00 | Translate post to: ... (Click for more languages)

salut am observat ca la ora de VIP free le da amo prea mult nu le da cel setat de mine eu am setat 1000 sa le dea pe kill si le da 6000 dece nu pricep am dat banuri o gramada crezand ca au hack dar e de la mine va rog din suflet o rezolvare
0 0
  
Back to top
View user's profile Send private message
-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

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

Pune sma-ul aici te rog.



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

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 13-08-2015, 13:57:47 | Translate post to: ... (Click for more languages)

http://www.girlshare.ro/35016559.6

uite link sus si jos este ce am scris in zm_vip.cfg

imi explici si mie in caz de vreau sa modific - te rog frumos

Quote:
zp_vip_nemextra 0 // 1 - ignore extra health (zp_vip_infecthealth) for nemesis [0-don't ignore]

zp_vip_show 1 // Show connecting vips (in chat) [0-off]

zp_vip_unlimited_ammo 1 // 1 - Give vips unlimited clip for all guns [0-off]

zp_vip_no_fall_damage 1 // 1 - Disables fall damage for vips [0-off]

zp_vip_damage_reward 150 // Damage done to get 1 ammo pack [0-off]. IMPORTANT: ZP mod always givving ammo in this type(If enabled). This cvar is seperate from main mod, so vips gets x2 ammo packs. One from mod, other from this plugin.

zp_vip_damage_increase 1.0 // How much increase humans attack demage (damage*cvar). [1.0 - off]

zp_vip_happy_hour 20-23 // Enables Happy Hour. Example: (zp_vip_hour 03-13) from 3h night, to 13h day. ['off' - off]

zp_vip_happy_hour_frag 2 // Gives extra frag for kills and infect

zp_vip_happy_hour_ammo 1000 // Gives extra ammo packet for infect and kills

zp_vip_nonvip_tease 1 // Let non vip player open /vm menu, but they can't buy anything.



// MODE 2 cvars (they will work only then MODE is set to 2 or 3)


Asta e cec am setat in zm_vip.cfg


zp_vip_register_in_zp_extra 1 // Show VIP menu in Zombie Plague Extra items menu [0-off]

zp_vip_menu_close 1 // 1-will close menu, after extra item bought, 0 - don't

zp_vip_hour 20-23 // Gives vips for all players. Example: (zp_vip_hour 19-23) from 3h night, to 13h day all will get a free vip. ['off' - off]

zp_vip_hour_flags abcde // Flags witch player gets (zp_vip_hour) active (check vips.ini)



// MODE 3 cvars (they will work only then MODE is set to 3)



zp_vip_cost_ammo // How much ammo will cost VIP, if buying it from extra items menu [0-just opens menu, when select "VIP Menu".]

zp_vip_buy_time // days how long (days) players will have vip, when bought it for ammo. 0 - forever

zp_vip_buy_flags // Flags witch player gets when buying vip (check vips.ini)

0 0
  
Back to top
View user's profile Send private message
kobo.
[Banned user]


Banned


Status: Offline
(since 19-11-2015 20:21)
Joined: 08 Aug 2015
Posts: 21, Topics: 3
Location: Romania

Reputation: 1.9

Post Posted: 13-08-2015, 14:15:41 | Translate post to: ... (Click for more languages)

Poftim

Code:
#include <amxmodx>
#include <hamsandwich>

#define PLUGIN "Free VIP"
#define VERSION "1.0"
#define AUTHOR "kobo"

new g_FreeVip[33];
new g_Time_1, g_Time_2

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
     
    g_Time_1 = register_cvar("free_vip_time_from", "20")
    g_Time_2 = register_cvar("free_vip_time_to", "09")
     
    RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)

}

public fwHamPlayerSpawnPost(id)
{
    new szTime[3]
    get_time("%H",szTime,2)
     
    new Time_1 = get_pcvar_num(g_Time_1)
    new Time_2 = get_pcvar_num(g_Time_2)
     
    new iTime = str_to_num(szTime)
    if( 20 <= iTime <= 24 )
    {
        if( !(get_user_flags(id) & ADMIN_RESERVATION) )
        {
            remove_user_flags(id, ADMIN_USER);
            set_user_flags(id, ADMIN_LEVEL_H);
            g_FreeVip[id] = true;
            set_hudmessage( 255, 255, 255, -1.0, 0.87, 0, 0.0, 12.0, 0.1, 0.2, -1 );
            show_hudmessage ( id, "Free VIP %d:00 - %d:00!", Time_1, Time_2)
        }
    }
    else if( 00 <= iTime <= 09 )
    {
        if( !(get_user_flags(id) & ADMIN_RESERVATION) )
        {
            remove_user_flags(id, ADMIN_USER);
            set_user_flags(id, ADMIN_LEVEL_H); // PUI CE FLAG AI TU LA VIP (AICI E FLAG T)
            g_FreeVip[id] = true;
            set_hudmessage( 255, 255, 255, -1.0, 0.87, 0, 0.0, 12.0, 0.1, 0.2, -1 );
            show_hudmessage ( id, "Free VIP = %d:00 - %d:00!", Time_1, Time_2)
        }
    }
    else if( g_FreeVip[id] )
    {
        remove_user_flags(id, ADMIN_LEVEL_H);
        set_user_flags(id, ADMIN_USER);
        g_FreeVip[id] = false;
    }
}

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

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 13-08-2015, 14:29:26 | Translate post to: ... (Click for more languages)

ce e asta ma kobo tu nuprea ai citit ce vr eu defapt nu
0 0
  
Back to top
View user's profile Send private message
kobo.
[Banned user]


Banned


Status: Offline
(since 19-11-2015 20:21)
Joined: 08 Aug 2015
Posts: 21, Topics: 3
Location: Romania

Reputation: 1.9

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

Ti-am dat plugin vip free happy hour, ti-l setezi de acolo cum vrei tu... din plugin_init

Al tau din cate am inteles ai bug la el ti-am dat unu no-bug

si la ammo setezi din cvar-ul tau din pluginu de baza cat sa iti dea pe hs/kill normal
sau tu vrei la vip sa dea ammo pe hs/kill?

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: 13-08-2015, 15:43:07 | Translate post to: ... (Click for more languages)

kobo. wrote:
Poftim.

E total gresit, in primul rand tu verifici la spawn timpul si folosesti un bool cu index atata timp cat VIP Free va fii pentru toata lumea + folosesti 2 constante pe care doar le declari aiurea si stockezi cvarurile in ele ->
Spoiler:

Iar acel vip seteaza VIP-ul dintr-un fisier.Iar pentru a verifica cand sa dai stop la Happy hour trebuie sa verifici daca e in ultima ora si minutul este egal cu 0 si atunci sa seteze bool-ul pe false.
PS:Seteaza aici o valoare mai mica si dai restart la server.Daca nu merge posteaza si sma sa ma uit prin el.
Spoiler:



Retired from Amxmodx

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

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

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

nu am sma :@ ca Sad ala nu mia dat sma daca nu merge imi dai tu te rog frumos un plugin bun ptr vip poate include si un model la human multumesc mult destroy ca am ajuti

am pus 500 acolo da la playeri normali unde modific cat amo sa le dea etc?

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

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

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

cum e mai bn sa modific liniile astea

zp_human_unlimited_ammo 1 // Unlimited ammo [0-disabled // 1-BP ammo // 2-clip ammo]

zp_human_damage_reward 150 // How much damage humans must deal on zombies to get an ammo pack

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: 13-08-2015, 18:59:18 | Translate post to: ... (Click for more languages)

Aici modifici cat sa le dea => zp_vip_happy_hour_ammo 1000
si aici zp_human_damage_reward 150
e la cat dmg trebuie sa ajunga pentru a primii acel reward.Cum am zis doar pune o valoare mica de exemplu 200 e ff mult 1000 posibil ca playerii sa primeasca si de la killurile normale de aia au cate 6000 in loc de 1000.
PS: Asta e pt unlimited ammo(de la arme) -> zp_human_unlimited_ammo 1
nu are legatura cu ammo packs.



Retired from Amxmodx

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

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

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

deci pana la urma cum inlocuesc aici spune tu ce vlori sa pun ca tu stii mai bine


zp_vip_happy_hour_ammo 1000

zp_human_damage_reward 150

nu am priceput nimic man spune ce valori sa modific



Last edited by Pitbul1997 on 13-08-2015, 19:06:23; edited 1 time in total
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: 13-08-2015, 19:05:26 | Translate post to: ... (Click for more languages)

zp_vip_happy_hour_ammo 300
Vezi daca asa primesc cum trebuie adica nici prea mult dar nici foarte putin..



Retired from Amxmodx

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

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

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

si la playeri cand nu e ora vip cum modific sa lea dea mai mult amo ca am cautat in zp-plague cfg si la human nam gasit decat liniile asea doua

zp_human_unlimited_ammo 1 // Unlimited ammo [0-disabled // 1-BP ammo // 2-clip ammo]

zp_human_damage_reward 150 // How much damage humans must deal on zombies to get an ammo pack

te rog frumos -

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: 13-08-2015, 19:13:35 | Translate post to: ... (Click for more languages)

Posteaza zp-plague.cfg te rog.


Retired from Amxmodx

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

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

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

http://www.girlshare.ro/35017341.7
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, 14 August 2015 12:26



 
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) -> Fixed issues  
Go to page 1, 2  Next    


The time now is 05-12-2024, 04:44:03
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x