Raised This Month: $32 Target: $400
 8% 

ScoutzKniveZ Manager v0.4


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 04-07-2009 , 15:19   ScoutzKniveZ Manager v0.4
Reply With Quote #1

ScoutKnifeZ Manager


This is my secund plugin

Description:
This plugin is mainly for scoutknifez (I think, its a good map for it, all other maps is good for it to!!)
You can self choose your gravity and sniper from a menu, there is respawn and multijump to.


Commands:
say /Scoutmenu // The menu
say /g800 // To get 800 gravity
say /g600 // To get 600 gravity
say /g400 // To get 400 gravity
say /g200 // To get 200 gravity
say /g100 // To get 100 gravity
say /sg550 // To get sg550
say /g3sg1 // To get g3sg1
say /AWP // To get AWP
say /Scout // To get scout


Cvars:
SKM_enabled <1|0> // Plugin enabled <1=enabled|0=disabled>
SKM_g800 <1|0> // Menu command gravity 800 <1=enabled|0=disabled>
SKM_g600 <1|0> // Menu command gravity 600 <1=enabled|0=disabled>
SKM_g400 <1|0> // Menu command gravity 400 <1=enabled|0=disabled>
SKM_g200 <1|0> // Menu command gravity 200 <1=enabled|0=disabled>
SKM_g100 <1|0> // Menu command gravity 100 <1=enabled|0=disabled>
SKM_SG550 <1|0> // Menu command weapon SG550 <1=enabled|0=disabled>
SKM_G3SG1 <1|0> // Menu command weapon G3SG1 <1=enabled|0=disabled>
SKM_Scout <1|0> // Menu command weapon Scout <1=enabled|0=disabled>
SKM_AWP <1|0> // Menu command weapon AWP <1=enabled|0=disabled>
SKM_g800a <1|0> // Say/Say_team command gravity 800 <1=enabled|0=disabled>
SKM_g600a <1|0> // Say/Say_team command gravity 600 <1=enabled|0=disabled>
SKM_g400a <1|0> // Say/Say_team command gravity 400 <1=enabled|0=disabled>
SKM_g200a <1|0> // Say/Say_team command gravity 200 <1=enabled|0=disabled>
SKM_g100a <1|0> // Say/Say_team command gravity 100 <1=enabled|0=disabled>
SKM_SG550a <1|0> // Say/Say_team command weapon SG550 <1=enabled|0=disabled>
SKM_G3SG1a <1|0> // Say/Say_team command weapon G3SG1 <1=enabled|0=disabled>
SKM_Scouta <1|0> // Say/Say_team command weapon Scout <1=enabled|0=disabled>
SKM_AWPa <1|0> // Say/Say_team command weapon AWP <1=enabled|0=disabled>
Respawn <1|0> // Respawn enabled <1=enabled|0=disabled>
amx_mjadminonly // Console command Multijump only for admin <1=enabled|0=disabled>

// All deafault= <1>
// Other deafaults
amx_respawndelay <1-*> // Delay before respawning
amx_maxjumps <1-*> // How manu multjumps in a row


Credits:




Changelog:
[0.2]
  • amx_mjadminonly // Console command Multijump only for admin <1=enabled|0=disabled>
  • amx_maxjumps <1-*> // How manu multjumps in a row
  • Added new name on .sma and .amxx
[0.3]
  • Added pop-up menu
[0.4]
  • Added SKM_help
  • Added som msg coming in 20 secs in game and 30 secs in game

To Do:

Attached Files
File Type: sma Get Plugin or Get Source (ScoutzKniveZManager.sma - 2202 views - 14.4 KB)
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.

Last edited by TitANious; 03-13-2015 at 19:20.
TitANious is offline
Send a message via MSN to TitANious
Dr.G
Senior Member
Join Date: Nov 2008
Old 04-07-2009 , 15:25   Re: ScoutKnifeZ Manager
Reply With Quote #2

when is this used:

PHP Code:
public respawn_player(id

 if(
is_user_connected(id)) 
 { 
  
set_pev(id,pev_deadflag,DEAD_RESPAWNABLE
  
set_pev(idpev_iuser10
  
dllfunc(DLLFunc_Think,id
  
  
engfunc(EngFunc_SetOrigin,id,Float:{-4800.0,-4800.0,-4800.0}) 
  
  
set_task(0.5,"spawnagain",id
 } 

public 
spawnagain(id

 if(
is_user_connected(id)) 
 { 
  
spawn(id
  
dllfunc(DLLFunc_Spawn,id
 } 


?
__________________
Dr.G is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 04-07-2009 , 15:30   Re: ScoutKnifeZ Manager
Reply With Quote #3

Will be fixed in next update sorry!
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Dr.G
Senior Member
Join Date: Nov 2008
Old 04-07-2009 , 15:31   Re: ScoutKnifeZ Manager
Reply With Quote #4

also, you should make an on/off cvar.

[edit]

and its not admin only if you were trying to make it so...
__________________

Last edited by Dr.G; 04-07-2009 at 15:33.
Dr.G is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-07-2009 , 15:47   Re: ScoutKnifeZ Manager
Reply With Quote #5

You again use code you don't understand, mean your respawn code seems tricky.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 04-07-2009, 15:47
Emilioneri
This message has been deleted by Emilioneri.
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 04-07-2009 , 15:50   Re: ScoutKnifeZ Manager
Reply With Quote #6

Well i need a respawn, it HAVE to be in this manager, it most fun, can you pls make one more easy to me Connor?
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 04-07-2009 , 16:32   Re: ScoutKnifeZ Manager
Reply With Quote #7

Code:
 #include <amxmodx>
#include <hamsandwich>
#include <cstrike>
new PLUG[] = "Respawn";
new VERS[] = "1.0";
new AUTH[] = "LeviN";
public plugin_init()
{
    register_plugin(PLUG, VERS, AUTH);
    
    RegisterHam(Ham_DeathNotice, "player", "player_death", 1);
    
    register_clcmd("say respawn", "StartSpawn")
}

public StartSpawn(id)
{
    if(!is_user_alive(id))
    {
        cs_set_user_team(id, CS_TEAM_T);
        set_task(1.0, "spawn_again", id);
    }
    return PLUGIN_HANDLED;
}
public spawn_again(id)
{
    ExecuteHamB(Ham_CS_RoundRespawn,id);
}
From This Code You Can Use:

Code:
{
    register_plugin(PLUG, VERS, AUTH);
    
    RegisterHam(Ham_DeathNotice, "player", "player_death", 1);
    
    register_clcmd("say respawn", "StartSpawn")
}

public StartSpawn(id)
{
    if(!is_user_alive(id))
    {
        cs_set_user_team(id, CS_TEAM_T);
        set_task(1.0, "spawn_again", id);
    }
    return PLUGIN_HANDLED;
}
public spawn_again(id)
{
    ExecuteHamB(Ham_CS_RoundRespawn,id);
}
__________________

Last edited by DruGzOG; 04-07-2009 at 16:34.
DruGzOG is offline
Send a message via AIM to DruGzOG
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 04-07-2009 , 16:35   Re: ScoutKnifeZ Manager
Reply With Quote #8

@Drug: Thanks
PHP Code:
#include <amxmodx> 
#include <fun> 
#include <fakemeta> 

#define PLUGIN "ScoutKnifeZ_Manager" 
#define VERSION "0.1" 
#define AUTHOR "TitANious" 

new gCvarEnabled
new gCvarGravity800
new gCvarGravity600
new gCvarGravity400
new gCvarGravity200
new gCvarGravity100
new gCvarSG550
new gCvarG3SG1
new gCvarAWP

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR
    
register_clcmd("say /SKM","cmdScoutKnifeZMenu") ,
    
register_clcmd("say_team /SKM","cmdScoutKnifeZMenu"
    
gCvarEnabled register_cvar("SKM_enabled""1")

    if(!
get_pcvar_num(gCvarEnabled))
    return;
    
    
gCvarGravity800 register_cvar("SKM_g800""1")
    
gCvarGravity600 register_cvar("SKM_g600""1")
    
gCvarGravity400 register_cvar("SKM_g400""1")
    
gCvarGravity200 register_cvar("SKM_g200""1")
    
gCvarGravity100 register_cvar("SKM_g100""1")
    
gCvarSG550 register_cvar("SKM_SG550""1")
    
gCvarG3SG1 register_cvar("SKM_G3SG1""1")
    
gCvarAWP register_cvar("SKM_AWP""1")

public 
cmdScoutKnifeZMenu(id

    new 
menu menu_create ("\rMenu for ScoutKnifeZ_Manager!:""handleScoutKnifeZMenu"
    
menu_additem(menu"\wGravity800""1"0
    
menu_additem(menu"\wGravity600""2"0
    
menu_additem(menu"\wGravity400""3"0
    
menu_additem(menu"\wGravity200""4"0
    
menu_additem(menu"\wGravity100""5"0
    
menu_additem(menu"\wGiveSg550""6"0
    
menu_additem(menu"\wGiveAWP""7"0
    
menu_additem(menu"\wGiveG3sg1""8"0
    
menu_display(idmenu0


public 
handleScoutKnifeZMenu(idmenuitem

    if (
item == MENU_EXIT
    { 
        
menu_destroy(menu
        return 
PLUGIN_HANDLED 
    

    new 
data[6], iName[64
    new 
accesscallback 

    menu_item_getinfo
(menuitemaccessdata,5iName63callback

    new 
key str_to_num(data

    switch(
key
    { 
        case 
1
        { 
    if(
get_pcvar_num(gCvarGravity800))
            
set_user_gravity(id1.0
            
client_print(idprint_chat"You have 800 gravity, isnt that normal?"
        } 
        case 
2
        {
    if(
get_pcvar_num(gCvarGravity600))
            
set_user_gravity(id0.75
            
client_print(idprint_chat"600 gravity, a bit less than 800, nothing less?"
        } 
        case 
3
        { 
    if(
get_pcvar_num(gCvarGravity400))
            
set_user_gravity(id0.5
            
client_print(idprint_chat"400, the half of normal!"
        } 
        case 
4
        { 
    if(
get_pcvar_num(gCvarGravity200))
            
set_user_gravity(id0.125
            
client_print(idprint_chat"200, the half of 400, you jump high now"
        } 
        case 
5
        { 
    if(
get_pcvar_num(gCvarGravity100))
            
set_user_gravity(id0.125
            
client_print(idprint_chat"100, the less in the whole server!"
        } 
        case 
6
        { 
    if(
get_pcvar_num(gCvarSG550))
            
client_cmd(id"slot1; drop"
            
give_itemid"weapon_sg550"
            
give_itemid"ammo_556nato"
            
give_itemid"ammo_556nato"
            
give_itemid"ammo_556nato"
            
give_itemid"ammo_556nato"
            
give_itemid"ammo_556nato"
            
client_print(idprint_chat"Didnt i deleted SG550?!"
        } 
        case 
7
        { 
    if(
get_pcvar_num(gCvarG3SG1))
            
client_cmd(id"slot1; drop"
            
give_item(id"weapon_g3sg1"
            
give_item(id"ammo_762nato"
            
give_item(id"ammo_762nato"
            
give_item(id"ammo_762nato"
            
give_item(id"ammo_762nato"
            
give_item(id"ammo_762nato"
            
give_item(id"ammo_762nato"
            
client_print(idprint_chat"Did you really buy a G3SG1?!"
        } 
        case 
8
        { 
    if(
get_pcvar_num(gCvarAWP))
            
client_cmd(id"slot1; drop"
            
give_itemid"weapon_awp" 
            
give_itemid"ammo_338magnum" 
            
give_itemid"ammo_338magnum" 
            
give_itemid"ammo_338magnum" 
            
give_itemid"ammo_338magnum" 
            
give_itemid"ammo_338magnum" 
            
client_print(idprint_chat"Isnt a AWP forbidden?!"
        } 
    } 

    
menu_destroy(menu
    return 
PLUGIN_HANDLED 


public 
respawn_player(id

    if(
is_user_connected(id)) 
    { 
        
set_pev(id,pev_deadflag,DEAD_RESPAWNABLE
        
set_pev(idpev_iuser10
        
dllfunc(DLLFunc_Think,id

        
engfunc(EngFunc_SetOrigin,id,Float:{-4800.0,-4800.0,-4800.0}) 

        
set_task(0.5,"spawnagain",id
    } 


public 
spawnagain(id

    if(
is_user_connected(id)) 
    { 
        
spawn(id
        
dllfunc(DLLFunc_Spawn,id
    } 

Would the pcvars work?
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 04-07-2009 , 16:48   Re: ScoutKnifeZ Manager
Reply With Quote #9

no. you only need 1 pcvar for the gravity..
BOYSplayCS is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 04-07-2009 , 16:54   Re: ScoutKnifeZ Manager
Reply With Quote #10

Well it's one to disable 800 grav one to 600 one to 400 one to 200 one to 100
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
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 04:38.


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