Raised This Month: $ Target: $400
 0% 

[REQ] Open buy menu after spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RTG
Senior Member
Join Date: Aug 2010
Location: CZ
Old 12-19-2011 , 15:31   [REQ] Open buy menu after spawn
Reply With Quote #1

Hello, i have searched a lot but didn't find plugin like this.

So what i need:
- everytime, when player spawns, force him to open buy menu, by command "buy"

I have CS 1.6 server with jCTF mod, and many players don't know they can buy weapons, so i want to force them to open buy menu everytime after they spawn. Can anyone help me? Thanks
RTG is offline
Send a message via ICQ to RTG Send a message via AIM to RTG
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-19-2011 , 15:46   Re: [REQ] Open buy menu after spawn
Reply With Quote #2

try

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

public plugin_init() 
{
    
register_plugin("Buy Respawn""1.0""kramesa")
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
}

public 
fwHamPlayerSpawnPost(id
{
    if (
is_user_alive(id)) 
    {
        
client_cmd(id"buy")
    }

__________________

Last edited by kramesa; 12-20-2011 at 19:42.
kramesa is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-19-2011 , 15:49   Re: [REQ] Open buy menu after spawn
Reply With Quote #3

Maybe use amx_imessages to advertise that you can buy weapons. You can also use amx_cmessages (a plugin I wrote that works exactly like imessages but in chat).
__________________
fysiks is offline
RTG
Senior Member
Join Date: Aug 2010
Location: CZ
Old 12-20-2011 , 18:47   Re: [REQ] Open buy menu after spawn
Reply With Quote #4

thank you kramesa

fysiks maybe i'll do what you said

thank you both
RTG is offline
Send a message via ICQ to RTG Send a message via AIM to RTG
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-20-2011 , 19:41   Re: [REQ] Open buy menu after spawn
Reply With Quote #5

Quote:
Originally Posted by RTG View Post
thank you kramesa

fysiks maybe i'll do what you said

thank you both
Works?
__________________
kramesa is offline
RTG
Senior Member
Join Date: Aug 2010
Location: CZ
Old 12-22-2011 , 20:15   Re: [REQ] Open buy menu after spawn
Reply With Quote #6

yes i'm using it and it seems it's better to enforce the menu than saying them that they can use the menu, e.g. because they are from many countries and mainly the most of them are noobies ... so thank you for your help

and fysiks please where can i find the plugin you meaned? and is it multilingual? (i cannot find it)
edit: oh i found it now, it's pretty simple but i'd rather use (if i) ad_manager.amxx, but it's not needed at this moment, thanks anyway (btw is there any plugin like this, but with multilingual support?)

Last edited by RTG; 12-22-2011 at 20:18. Reason: i found it
RTG is offline
Send a message via ICQ to RTG Send a message via AIM to RTG
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-22-2011 , 20:19   Re: [REQ] Open buy menu after spawn
Reply With Quote #7

Quote:
Originally Posted by RTG View Post
and fysiks please where can i find the plugin you meaned? and is it multilingual? (i cannot find it)
Here.

It's exactly like amx_imessages from the default AMX Mod X except for chat instead of HUD messages.
__________________
fysiks is offline
RTG
Senior Member
Join Date: Aug 2010
Location: CZ
Old 12-25-2011 , 20:10   Re: [REQ] Open buy menu after spawn
Reply With Quote #8

yes i have found it as you can see above, but is there any plugin like this, but with multilingual support?
RTG is offline
Send a message via ICQ to RTG Send a message via AIM to RTG
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-25-2011 , 23:03   Re: [REQ] Open buy menu after spawn
Reply With Quote #9

Quote:
Originally Posted by RTG View Post
yes i have found it as you can see above, but is there any plugin like this, but with multilingual support?
I don't know. It's unlikely that there is one analogous to mine.
__________________

Last edited by fysiks; 12-25-2011 at 23:03.
fysiks is offline
RTG
Senior Member
Join Date: Aug 2010
Location: CZ
Old 12-26-2011 , 07:12   Re: [REQ] Open buy menu after spawn
Reply With Quote #10

on my other hlds'es i'm using this http://forums.alliedmods.net/showthread.php?t=27814 but it's not analogous to yours
RTG is offline
Send a message via ICQ to RTG Send a message via AIM to RTG
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 20:47.


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