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

Need Script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-27-2017 , 14:02   Need Script
Reply With Quote #1

Hi, i want simple script get Menu show evey round start mean if round start it show menu
every round.

menu is when say /menu it show menu so i want every round start it show menu with no say menu and they also can open menu by typing menu.
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Old 03-27-2017, 14:45
yas17sin
This message has been deleted by yas17sin. Reason: wtf, i don't understand this guy.
Old 03-27-2017, 14:53
Relaxing
This message has been deleted by Relaxing.
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-27-2017 , 15:04   Re: Need Script
Reply With Quote #2

Quote:
Originally Posted by Relaxing View Post
[pawn]menu_additem(menu,*"Elite*",*"",*1)[pawn]
As @yas17sin wrote, player would reward both options.
i said i need the script not the menu :@

only script as
reg plugin round restat ..... show [menu]
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-27-2017 , 15:05   Re: Need Script
Reply With Quote #3

Quote:
Originally Posted by yas17sin View Post
here :
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>

#define PLUGIN "TEST"
#define VERSION "1.0"
#define AUTHOR "yas17sin"

new menu;

new 
bool:USED[33]

public 
plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR )
    
    
register_event("HLTV""EventRoundStart""a""1=0""2=0")
    
    
register_clcmd"say /menu""show_themenu" )
    
register_clcmd"say_team /menu""show_themenu" )
}
public 
EventRoundStart(id)
{
    
USED[id] = false
}
public 
show_themenu(id)
{
    if(!
is_user_aliveid ) )
        return;
        
    if(
USED[id])
    {
        
client_print(idprint_center"[SERVER] This Menu Can Be Used One Time Per Round")
        return;
    }
    
    
main_menu(id);
}
public 
main_menuid )
{
    
menu menu_create"Menu""menu_handler" );
    
    
menu_additemmenu"Deagle""")
    
menu_additemmenu"Elite """)
    
    
menu_displayidmenu);
    
    
USED[id] = true
}
    
public 
menu_handleridmenuitem )
{
    switch( 
item )
    {
        case 
0:
        {
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
        }
        case 
1:
        {
            
give_item(id"weapon_elite")
            
cs_set_user_bpammo(idCSW_ELITE90 )
        }
        case 
MENU_EXIT:
        {
            
menu_destroy(menu)
        }
    }
    return 
PLUGIN_HANDLED;

You should learn to name variables in a correct way. Also you should hook Game Commencing and reset bool in it.
__________________
edon1337 is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-27-2017 , 15:06   Re: Need Script
Reply With Quote #4

Quote:
Originally Posted by yas17sin View Post
here :
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>

#define PLUGIN "TEST"
#define VERSION "1.0"
#define AUTHOR "yas17sin"

new menu;

new 
bool:USED[33]

public 
plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR )
    
    
register_event("HLTV""EventRoundStart""a""1=0""2=0")
    
    
register_clcmd"say /menu""show_themenu" )
    
register_clcmd"say_team /menu""show_themenu" )
}
public 
EventRoundStart(id)
{
    
USED[id] = false
}
public 
show_themenu(id)
{
    if(!
is_user_aliveid ) )
        return;
        
    if(
USED[id])
    {
        
client_print(idprint_center"[SERVER] This Menu Can Be Used One Time Per Round")
        return;
    }
    
    
main_menu(id);
}
public 
main_menuid )
{
    
menu menu_create"Menu""menu_handler" );
    
    
menu_additemmenu"Deagle""")
    
menu_additemmenu"Elite """)
    
    
menu_displayidmenu);
    
    
USED[id] = true
}
    
public 
menu_handleridmenuitem )
{
    switch( 
item )
    {
        case 
0:
        {
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
        }
        case 
1:
        {
            
give_item(id"weapon_elite")
            
cs_set_user_bpammo(idCSW_ELITE90 )
        }
        case 
MENU_EXIT:
        {
            
menu_destroy(menu)
        }
    }
    return 
PLUGIN_HANDLED;

i said i have the menu, i need o nly the few lines of script whitch it make my menu show every round start....
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Old 03-27-2017, 15:06
yas17sin
This message has been deleted by yas17sin. Reason: wtf, i don't understand this guy.
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-27-2017 , 15:07   Re: Need Script
Reply With Quote #5

Quote:
Originally Posted by yas17sin View Post
here are u blind or something, can't you see that part :
PHP Code:
#include <amxmodx>

#define PLUGIN "TEST"
#define VERSION "1.0"
#define AUTHOR "yas17sin"

new bool:USED[33]

public 
plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR )
    
    
register_event("HLTV""EventRoundStart""a""1=0""2=0")
}
public 
EventRoundStart(id)
{
    
USED[id] = false
}
public 
show_themenu(id)
{
    if(!
is_user_aliveid ) )
        return;
        
    if(
USED[id])
    {
        
client_print(idprint_center"[SERVER] This Menu Can Be Used One Time Per Round")
        return;
    }
    
    
main_menu(id); // you menu

whitch PART YOU DONT UNDERSTAND
I SAID NOT USE MENU ONE TIME IN ROUND I SAID IT NEED SHOW EVERY ROUND START!!!!
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-27-2017 , 15:12   Re: Need Script
Reply With Quote #6

any one help?
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 03-27-2017 , 15:14   Re: Need Script
Reply With Quote #7

here you didn't say that :
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_event("HLTV""EventRoundStart""a""1=0""2=0")
}
public 
EventRoundStart(id)
{
    
show_yourmenu(id); // this is your menu function, the menu will pop-up

__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 03-27-2017 at 15:14.
yas17sin is offline
Send a message via ICQ to yas17sin
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-27-2017 , 15:14   Re: Need Script
Reply With Quote #8

ps yacin i need script not use one time menu, its shop menu so its need used any time so delet it.
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-27-2017 , 15:33   Re: Need Script
Reply With Quote #9

Dude, you will not get help being like this.

Quote:
I WANT
I SAID I WANT THIS
Is not like this, the forum is not for you only.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-28-2017 , 04:32   Re: Need Script
Reply With Quote #10

Quote:
Originally Posted by EFFx View Post
Dude, you will not get help being like this.



Is not like this, the forum is not for you only.
script for yours furien mod -.- ...... i want make knife menu for furiens when they spawn it show at begin because many people has problems to choose knifes
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
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 01:01.


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