Raised This Month: $7 Target: $400
 1% 

Just Capture the Flag (CTF) v1.32c (26 jun 2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 03-24-2019 , 07:43   Re: Just Capture the Flag (CTF) v1.32c (26 jun 2012)
Reply With Quote #621

There is no buyzone when i use this plugin how to fix it
Awesome_man is offline
jievylook
Senior Member
Join Date: Sep 2018
Old 05-15-2019 , 20:31   Re: Just Capture the Flag (CTF)
Reply With Quote #622

Quote:
Originally Posted by Hunter-Digital View Post
Fine then, edited.

Still, about the VGUI menu, I can't do anything about that, it must be disabled or people can't buy... or worse, they buy weapons with old prices (like shield or awp)
How can I make the map last 30 minutes or failing that the first team that captures 10 flags is the winner?
jievylook is offline
yRestrict
BANNED
Join Date: Apr 2019
Old 05-31-2019 , 09:54   Re: Just Capture the Flag (CTF) v1.32c (26 jun 2012)
Reply With Quote #623

Someone knows how to solve buytime problem, it does not want to get activated
yRestrict is offline
jievylook
Senior Member
Join Date: Sep 2018
Old 06-03-2019 , 22:22   Re: Just Capture the Flag (CTF)
Reply With Quote #624

Quote:
Originally Posted by Hunter-Digital View Post
I don't really understand what you want to say there, apart from the "thanks".
How can I do so that when the player captures the flag, he has a higher speed than the rest?
jievylook is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 06-04-2019 , 02:30   Re: Just Capture the Flag (CTF)
Reply With Quote #625

Quote:
Originally Posted by jievylook View Post
How can I do so that when the player captures the flag, he has a higher speed than the rest?
The API is there.

PHP Code:
/*
    These are parsed in the iEvent var of the jctf_flag() forward.
*/
enum
{
    
/* Event        | Forward variables used by event    | Description of event                                            */
    
FLAG_STOLEN 0,    /* iPlayer, iFlagTeam            | iPlayer got iFlagTeam's flag from their base                            */
    
FLAG_PICKED,    /* iPlayer, iFlagTeam            | iPlayer picked iFlagTeam's flag from the ground                        */
    
FLAG_DROPPED,    /* iPlayer, iFlagTeam            | iPlayer dropped the iFlagTeam's flag by dying, disconnecting or manually        */
    
FLAG_MANUALDROP,    /* iPlayer, iFlagTeam            | iPlayer dropped the iFlagTeam's flag manually (using /dropflag)                */
    
FLAG_RETURNED,    /* iPlayer, iFlagTeam, bAssist     | iPlayer (bAssist ? "assisted on returning" : "returned") the iFlagTeam's flag    */
    
FLAG_CAPTURED,    /* iPlayer, iFlagTeam, bAssist    | iPlayer (bAssist ? "assisted on capturing" : "captured") the iFlagTeam's flag    */
    
FLAG_AUTORETURN,    /* iFlagTeam                | iFlagTeam's flag was automatically returned                            */
    
FLAG_ADMINRETURN    /* iPlayer, iFlagTeam            | iFlagTeam's flag was returned by admin iPlayer using the command            */
};

/**
 * This forward triggers when a team's flag changes status.
 * This forward also triggers, for example, when a flag is captured, for the
 * capturing player and also for the assisting ones, each having bAssist true/false acordingly.
 *
 * @param iEvent        The event triggered (list above)
 * @param iPlayer        Index of player
 * @param iFlagTeam    The flag's team
 * @param bool:bAssist    Is true if the iPlayer is an assisting player for iEvent, false if not.
 * @noreturn
 */
forward jctf_flag(iEventiPlayeriFlagTeambool:bAssist); 
__________________
Spirit_12 is offline
jievylook
Senior Member
Join Date: Sep 2018
Old 06-05-2019 , 22:15   Re: Just Capture the Flag (CTF)
Reply With Quote #626

Quote:
Originally Posted by Spirit_12 View Post
The API is there.

PHP Code:
/*
    These are parsed in the iEvent var of the jctf_flag() forward.
*/
enum
{
    
/* Event        | Forward variables used by event    | Description of event                                            */
    
FLAG_STOLEN 0,    /* iPlayer, iFlagTeam            | iPlayer got iFlagTeam's flag from their base                            */
    
FLAG_PICKED,    /* iPlayer, iFlagTeam            | iPlayer picked iFlagTeam's flag from the ground                        */
    
FLAG_DROPPED,    /* iPlayer, iFlagTeam            | iPlayer dropped the iFlagTeam's flag by dying, disconnecting or manually        */
    
FLAG_MANUALDROP,    /* iPlayer, iFlagTeam            | iPlayer dropped the iFlagTeam's flag manually (using /dropflag)                */
    
FLAG_RETURNED,    /* iPlayer, iFlagTeam, bAssist     | iPlayer (bAssist ? "assisted on returning" : "returned") the iFlagTeam's flag    */
    
FLAG_CAPTURED,    /* iPlayer, iFlagTeam, bAssist    | iPlayer (bAssist ? "assisted on capturing" : "captured") the iFlagTeam's flag    */
    
FLAG_AUTORETURN,    /* iFlagTeam                | iFlagTeam's flag was automatically returned                            */
    
FLAG_ADMINRETURN    /* iPlayer, iFlagTeam            | iFlagTeam's flag was returned by admin iPlayer using the command            */
};

/**
 * This forward triggers when a team's flag changes status.
 * This forward also triggers, for example, when a flag is captured, for the
 * capturing player and also for the assisting ones, each having bAssist true/false acordingly.
 *
 * @param iEvent        The event triggered (list above)
 * @param iPlayer        Index of player
 * @param iFlagTeam    The flag's team
 * @param bool:bAssist    Is true if the iPlayer is an assisting player for iEvent, false if not.
 * @noreturn
 */
forward jctf_flag(iEventiPlayeriFlagTeambool:bAssist); 
Sorry but I do not know how I should modify the code to get what I need. can not with another script generate a plugin for that function?
jievylook is offline
jievylook
Senior Member
Join Date: Sep 2018
Old 06-22-2019 , 23:45   Re: Just Capture the Flag (CTF) v1.32c (26 jun 2012)
Reply With Quote #627

I have conflicts with a level B admin plugin, for example I want that in each round the players with this flag have a grenade, I am using this code and in the image they can see that the bombs do not give them.

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#define PLUGIN_VERSION "1.0"
#define VIP_FLAG ADMIN_LEVEL_B

public plugin_init()
{
    
register_plugin("Generated VIP Plugin"PLUGIN_VERSION"AMXX-BG.info")
    
register_cvar("amxxbg_vip"PLUGIN_VERSIONFCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)
    
RegisterHam(Ham_Spawn"player""OnPlayerSpawn"1)
    
register_message(get_user_msgid("ScoreAttrib"), "OnScoreAttrib")
}

public 
OnPlayerSpawn(id)
{
    if(!
is_user_alive(id) || !is_user_vip(id))
        return

    
set_user_health(id150)
    
cs_set_user_armor(id100CS_ARMOR_VESTHELM)
    
give_item(id"weapon_hegrenade")
    
give_item(id"weapon_flashbang")
    
cs_set_user_bpammo(idCSW_FLASHBANG2)
    
give_item(id"weapon_smokegrenade")
}

public 
OnScoreAttrib(iMsgIdiMsgDestiMsgEnt)
{
    if(
is_user_vip(get_msg_arg_int(1)))
        
set_msg_arg_int(2ARG_BYTE, (1<<2))
}

bool:is_user_vip(id)
    return !!(
get_user_flags(id) & VIP_FLAG

jievylook is offline
Old 12-31-2019, 01:15
glmmlg
This message has been deleted by glmmlg.
ForeskinJohn
Junior Member
Join Date: Apr 2020
Old 05-01-2020 , 11:11   Re: Just Capture the Flag (CTF) v1.32c (26 jun 2012)
Reply With Quote #628

Would this plugin happen to be compatible with YAPB or POD bot?
ForeskinJohn is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 05-01-2020 , 14:12   Re: Just Capture the Flag (CTF) v1.32c (26 jun 2012)
Reply With Quote #629

If I recall correctly, POD bots should capture the flag and try to win.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
ForeskinJohn
Junior Member
Join Date: Apr 2020
Old 05-01-2020 , 18:38   Re: Just Capture the Flag (CTF) v1.32c (26 jun 2012)
Reply With Quote #630

Nice! ill give it try.
ForeskinJohn is offline
Reply


Thread Tools
Display Modes

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 22:44.


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