AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Open buy menu after spawn (https://forums.alliedmods.net/showthread.php?t=174387)

RTG 12-19-2011 15:31

[REQ] Open buy menu after spawn
 
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

kramesa 12-19-2011 15:46

Re: [REQ] Open buy menu after spawn
 
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")
    }



fysiks 12-19-2011 15:49

Re: [REQ] Open buy menu after spawn
 
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).

RTG 12-20-2011 18:47

Re: [REQ] Open buy menu after spawn
 
thank you kramesa

fysiks maybe i'll do what you said

thank you both :)

kramesa 12-20-2011 19:41

Re: [REQ] Open buy menu after spawn
 
Quote:

Originally Posted by RTG (Post 1616784)
thank you kramesa

fysiks maybe i'll do what you said

thank you both :)

Works?

RTG 12-22-2011 20:15

Re: [REQ] Open buy menu after spawn
 
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?)

fysiks 12-22-2011 20:19

Re: [REQ] Open buy menu after spawn
 
Quote:

Originally Posted by RTG (Post 1618007)
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.

RTG 12-25-2011 20:10

Re: [REQ] Open buy menu after spawn
 
yes i have found it as you can see above, but is there any plugin like this, but with multilingual support?

fysiks 12-25-2011 23:03

Re: [REQ] Open buy menu after spawn
 
Quote:

Originally Posted by RTG (Post 1619614)
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.

RTG 12-26-2011 07:12

Re: [REQ] Open buy menu after spawn
 
on my other hlds'es i'm using this http://forums.alliedmods.net/showthread.php?t=27814 but it's not analogous to yours :D


All times are GMT -4. The time now is 20:47.

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