Raised This Month: $ Target: $400
 0% 

[REQ]Jailbreak awesome idea


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
t64181700
Member
Join Date: Dec 2009
Old 01-05-2010 , 23:24   [REQ]Jailbreak awesome idea
Reply With Quote #1

can someone make this for me:

Ts have a 5%(changable) of becoming a spy and kill all the CTs: chance of spawning in CT spawn with 75hp(changable) and the attached custom player model, knife, and dual elites. w/ sounds too please Ooo and also allow 1 T to be able to actually become the spy per round

thanx in advance
Attached Files
File Type: rar JB_spy_request.rar (1.79 MB, 211 views)
t64181700 is offline
orange
Senior Member
Join Date: Dec 2005
Old 01-06-2010 , 02:49   Re: [REQ]Jailbreak awesome idea
Reply With Quote #2

yay more jb request gotta love them.
__________________
orange is offline
vaan123
Veteran Member
Join Date: Sep 2009
Location: Kuwait
Old 01-06-2010 , 04:44   Re: [REQ]Jailbreak awesome idea
Reply With Quote #3

Nice idea!

but how about making it a 20% chance of 1 Terrorist spawning as a spy with CT, with 50 HP or random maybe.

again , awesome ida =) i hope someone can make this
__________________

vaan123 is offline
Send a message via MSN to vaan123 Send a message via Yahoo to vaan123 Send a message via Skype™ to vaan123
lazarev
Veteran Member
Join Date: Sep 2008
Old 01-06-2010 , 10:11   Re: [REQ]Jailbreak awesome idea
Reply With Quote #4

nice idea, and if spy kill ct, he will get some hp or T skin
lazarev is offline
vaan123
Veteran Member
Join Date: Sep 2009
Location: Kuwait
Old 01-06-2010 , 10:53   Re: [REQ]Jailbreak awesome idea
Reply With Quote #5

Quote:
Originally Posted by lazarev View Post
nice idea, and if spy kill ct, he will get some hp or T skin
yes =) exolent
__________________

vaan123 is offline
Send a message via MSN to vaan123 Send a message via Yahoo to vaan123 Send a message via Skype™ to vaan123
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-06-2010 , 15:14   Re: [REQ]Jailbreak awesome idea
Reply With Quote #6

Try this:
PHP Code:
#include < amxmodx >
#include < cstrike >
#include < fun >
#include < fakemeta >
#include < hamsandwich >

new const SPY_CHANCE 5;
new const 
SPY_MODEL[ ] = "";
new const 
SPY_WEAPONS[ ] = {
    
CSW_KNIFE,
    
CSW_ELITE
};
new const 
SPY_HEALTH 100;

new const 
g_szWeaponClassnames[ ][ ] =
{
    
"",
    
"weapon_p228",
    
"",
    
"weapon_scout",
    
"weapon_hegrenade",
    
"weapon_xm1014",
    
"weapon_c4",
    
"weapon_mac10",
    
"weapon_aug",
    
"weapon_smokegrenade",
    
"weapon_elite",
    
"weapon_fiveseven",
    
"weapon_ump45",
    
"weapon_sg550",
    
"weapon_galil",
    
"weapon_famas",
    
"weapon_usp",
    
"weapon_glock18",
    
"weapon_awp",
    
"weapon_mp5navy",
    
"weapon_m249",
    
"weapon_m3",
    
"weapon_m4a1",
    
"weapon_tmp",
    
"weapon_g3sg1",
    
"weapon_flashbang",
    
"weapon_deagle",
    
"weapon_sg552",
    
"weapon_ak47",
    
"weapon_knife",
    
"weapon_p90"
};

enum AmmoTypes
{
    
AMMO_CLIP,
    
AMMO_BACKPACK
};

new const 
g_iWeaponMaxAmmosizeofg_szWeaponClassnames ) ][ AmmoTypes ] =
{
    { 
0},
    { 
1352 },
    { 
0},
    { 
1090 },
    { 
0},
    { 
732 },
    { 
0},
    { 
30100 },
    { 
3090 },
    { 
0},
    { 
30120 },
    { 
20100 },
    { 
25100 },
    { 
3090 },
    { 
3590 },
    { 
2590 },
    { 
12100 },
    { 
20120 },
    { 
1030 },
    { 
30120 },
    { 
100200 },
    { 
832 },
    { 
3090 },
    { 
30120 },
    { 
2090 },
    { 
0},
    { 
735 },
    { 
3090 },
    { 
3090 },
    { 
0},
    { 
50100 }
};

new 
bool:g_bSpy;

new 
g_iMsgId_TeamInfo;

public 
plugin_precache( ) {
    new 
szModel128 ];
    
formatexszModel127"models/player/%s/%s.mdl"SPY_MODELSPY_MODEL );
    
precache_modelszModel );
}

public 
plugin_init( ) {
    
register_plugin"T Spy""0.0.1""Exolent" );
    
    
register_event"HLTV""EventNewRound""a""1=0""2=0" );
    
    
RegisterHamHam_Spawn"player""FwdPlayerSpawn");
    
    
g_iMsgId_TeamInfo get_user_msgid"TeamInfo" );
}

public 
EventNewRound( ) {
    
g_bSpy false;
}

public 
FwdPlayerSpawniPlayer ) {
    if( !
g_bSpy
    
&& is_user_aliveiPlayer )
    && 
cs_get_user_teamiPlayer ) == CS_TEAM_T ) {
        if( 
random_num1100 ) <= SPY_CHANCE ) {
            
g_bSpy true;
            
            new 
iBlock get_msg_blockg_iMsgId_TeamInfo );
            
set_msg_blockg_iMsgId_TeamInfoBLOCK_SET );
            
            
fm_cs_set_user_teamiPlayerCS_TEAM_CT );
            
ExecuteHamBHam_CS_RoundRespawniPlayer );
            
fm_cs_set_user_teamiPlayerCS_TEAM_T );
            
            
set_msg_blockg_iMsgId_TeamInfoiBlock );
            
            
cs_set_user_modeliPlayerSPY_MODEL );
            
            
strip_user_weaponsiPlayer );
            
            new 
iWeaponiEntityiAmmo;
            for( new 
0sizeofSPY_WEAPONS ); i++ ) {
                
iWeapon SPY_WEAPONS];
                
iEntity give_itemiPlayerg_szWeaponClassnamesiWeapon ] );
                
                
iAmmo g_iWeaponMaxAmmoiWeapon ][ AMMO_CLIP ];
                if( 
iAmmo ) {
                    
cs_set_weapon_ammoiEntityiAmmo );
                }
                
                
iAmmo g_iWeaponMaxAmmoiWeapon ][ AMMO_BACKPACK ];
                if( 
iAmmo ) {
                    
cs_set_user_bpammoiPlayeriWeaponiAmmo );
                }
            }
            
            
set_user_healthiPlayerSPY_HEALTH );
            
            
client_printiPlayerprint_center"You are a SPY! (%i%% chance)"SPY_CHANCE );
        }
    }
}

// ConnorMcLeod
fm_cs_set_user_team(id, {CsTeams,_}:iTeam, {CsInternalModel,_}:iModel CsInternalModel:CS_DONTCHANGE)
{
    static const 
OFFSET_TEAM 114;
    static const 
OFFSET_INTERNALMODEL 126;
    
    if( 
iTeam CS_TEAM_SPECTATOR )
        return;

    
set_pdata_int(idOFFSET_TEAM_:iTeam);

    if( 
iModel )
    {
        
set_pdata_int(idOFFSET_INTERNALMODEL_:iModel);
    }

    
dllfunc(DLLFunc_ClientUserInfoChangedidengfunc(EngFunc_GetInfoKeyBufferid));

    static const 
szTeams[] = { "UNASSIGNED" "TERRORIST" "CT" "SPECTATOR" };

    
emessage_begin(MSG_ALLg_iMsgId_TeamInfo);
    
ewrite_byte(id);
    
ewrite_string(szTeams[_:iTeam]);
    
emessage_end();

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 01-07-2010 at 22:14.
Exolent[jNr] is offline
t64181700
Member
Join Date: Dec 2009
Old 01-06-2010 , 22:08   Re: [REQ]Jailbreak awesome idea
Reply With Quote #7

thankss
t64181700 is offline
vaan123
Veteran Member
Join Date: Sep 2009
Location: Kuwait
Old 01-07-2010 , 07:34   Re: [REQ]Jailbreak awesome idea
Reply With Quote #8

thank you thank you! this is awesome for for jailbreak server !

EXOLENT = SCRIPTING GOD

__________________

vaan123 is offline
Send a message via MSN to vaan123 Send a message via Yahoo to vaan123 Send a message via Skype™ to vaan123
t64181700
Member
Join Date: Dec 2009
Old 01-07-2010 , 21:50   Re: [REQ]Jailbreak awesome idea
Reply With Quote #9

just got around to trying today, but how do u make it compileable i gotta fill in some quotes but dunno what to fill it with
t64181700 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-07-2010 , 21:54   Re: [REQ]Jailbreak awesome idea
Reply With Quote #10

All you gotta do is change the top part:

PHP Code:
new const SPY_CHANCE 5;
new const 
SPY_MODEL[ ] = "";
new const 
SPY_WEAPONS[ ] = {
    
CSW_KNIFE,
    
CSW_ELITE
};
new const 
SPY_HEALTH 100
EDIT:

Fixed compile errors.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 01-07-2010 at 22:14.
Exolent[jNr] 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 07:21.


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