Raised This Month: $51 Target: $400
 12% 

VIP Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-06-2020 , 10:20   Re: VIP Plugin
Reply With Quote #11

Post it in suggestions/requests next time if you don't know how to fix things yourself even though u had a lot of help. If this doesn't help you, you probably didn't properly explain what you actually want.

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
//#include <hamsandwich>
#include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

#define TASKID 919191

new CurrentRound;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("HTLV""New_Round""a""1=0""2=0");
}

public 
New_Round(id) {
    
set_task(0.1"GiveWeapons"id TASKID);
}

public 
GiveWeapons(id) {
    
id -= TASKID;
    
CurrentRound++;
    if(
is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
    {
        
give_item(id"weapon_hegrenade")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_smokegrenade")
        
give_item(id"item_assaultsuit")
        
give_item(id"item_thighpack")
    }
    return 
PLUGIN_HANDLED

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 11-10-2020 , 12:12   Re: VIP Plugin
Reply With Quote #12

Quote:
Originally Posted by Napoleon_be View Post
Post it in suggestions/requests next time if you don't know how to fix things yourself even though u had a lot of help. If this doesn't help you, you probably didn't properly explain what you actually want.

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
//#include <hamsandwich>
#include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

#define TASKID 919191

new CurrentRound;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("HTLV""New_Round""a""1=0""2=0");
}

public 
New_Round(id) {
    
set_task(0.1"GiveWeapons"id TASKID);
}

public 
GiveWeapons(id) {
    
id -= TASKID;
    
CurrentRound++;
    if(
is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
    {
        
give_item(id"weapon_hegrenade")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_smokegrenade")
        
give_item(id"item_assaultsuit")
        
give_item(id"item_thighpack")
    }
    return 
PLUGIN_HANDLED

even your code explains my question i asked if you still dont know what im asking about...
and idk but it still doesnt work... did everything properly.
i even seperated this plugin from my main vip.
HowToRuski is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-10-2020 , 15:38   Re: VIP Plugin
Reply With Quote #13

I don't really see what the problem could be... Could you perhaps be more precise of what the problem exactly is at the moment? We can't really help you if the only thing you're saying is "it doesn't work".
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 11-11-2020 , 12:21   Re: VIP Plugin
Reply With Quote #14

Quote:
Originally Posted by Napoleon_be View Post
I don't really see what the problem could be... Could you perhaps be more precise of what the problem exactly is at the moment? We can't really help you if the only thing you're saying is "it doesn't work".
I think you're the only one who doesnt seem to understand what the problem of mine is.
As i said, there is no items giving to VIP aka ADMIN_LEVEL_H player from my code above. I dont know what the issue is because it compiles without any substenced errors and i dont know how to fix that.

Last edited by HowToRuski; 11-11-2020 at 12:22.
HowToRuski is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-11-2020 , 13:55   Re: VIP Plugin
Reply With Quote #15

Quote:
Originally Posted by HowToRuski View Post
I think you're the only one who doesnt seem to understand what the problem of mine is.
As i said, there is no items giving to VIP aka ADMIN_LEVEL_H player from my code above. I dont know what the issue is because it compiles without any substenced errors and i dont know how to fix that.
I don't really think you can code properly. Again, post it in suggestions/request if you don't know what the f*ck you're doing. You could start by adding debug log messages to see if it actually triggers the part.

Last reply i gave to you, fix it yourself then.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 11-12-2020 , 11:39   Re: VIP Plugin
Reply With Quote #16

Quote:
Originally Posted by Napoleon_be View Post
I don't really think you can code properly. Again, post it in suggestions/request if you don't know what the f*ck you're doing. You could start by adding debug log messages to see if it actually triggers the part.

Last reply i gave to you, fix it yourself then.
And what my problem is about requesting/suggestion? I need scripting help because im STUCK and i can see you cant help me. So i kindly ask you to not post anything here unless you cant help me with my problem.

P.S. Still looking for a solution

Last edited by HowToRuski; 11-12-2020 at 11:40.
HowToRuski is offline
ZaX
Senior Member
Join Date: Jan 2015
Old 11-12-2020 , 12:12   Re: VIP Plugin
Reply With Quote #17

Quote:
Originally Posted by Napoleon_be View Post
Post it in suggestions/requests next time if you don't know how to fix things yourself even though u had a lot of help. If this doesn't help you, you probably didn't properly explain what you actually want.

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
//#include <hamsandwich>
#include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

#define TASKID 919191

new CurrentRound;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("HTLV""New_Round""a""1=0""2=0");
}

public 
New_Round(id) {
    
set_task(0.1"GiveWeapons"id TASKID);
}

public 
GiveWeapons(id) {
    
id -= TASKID;
    
CurrentRound++;
    if(
is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
    {
        
give_item(id"weapon_hegrenade")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_smokegrenade")
        
give_item(id"item_assaultsuit")
        
give_item(id"item_thighpack")
    }
    return 
PLUGIN_HANDLED

New_Round is a global event, it doesnt have any params
ZaX is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 11-13-2020 , 12:59   Re: VIP Plugin
Reply With Quote #18

Quote:
Originally Posted by ZaX View Post
New_Round is a global event, it doesnt have any params
Any solutions on how do it fix that? :/
HowToRuski is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 11-14-2020 , 15:14   Re: VIP Plugin
Reply With Quote #19

Anyone?
HowToRuski is offline
Old 11-14-2020, 16:56
redivcram
This message has been deleted by redivcram. Reason: OP's requests are too confusing... nvm
AnimalMonster
Senior Member
Join Date: May 2020
Old 11-14-2020 , 17:49   Re: VIP Plugin
Reply With Quote #20

you can do it in round start:
PHP Code:
register_logevent("Round_Start"2"1=Round_Start"
or using hamsandwich to detect that user spawned and give the weapons and etc.

PHP Code:
RegisterHam(Ham_Spawn"player""fw_spawned"
Edit: I seen someone putting 1=New_Round but i think that 1=Round_Start may work better and when i tested it, it worked at every round start. (in my plugins, such as zombie plague countdown).
Edit2: try replacing what i've said up there in Edit.

Last edited by AnimalMonster; 11-14-2020 at 17:53.
AnimalMonster is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode