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

Slap as deafault


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 04-20-2004 , 17:57   Slap as deafault
Reply With Quote #1

When you go into the Slap/Kick-menu you always need to change to slap.

I usually don't slay people on my server, just slap them arround a little bit.

Is it possible to change so you can have SLAP as default when you go into that SLAP/KICK-menu.


thankful for answers..
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 04-20-2004 , 20:11  
Reply With Quote #2

u could use amx_slap
__________________
QwertyAccess is offline
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 04-21-2004 , 06:55   Of cource.
Reply With Quote #3

Well of course you could do that, but that would take even more time to slap a specific player.

It not much job to have to change to slap with the 8-button, but I believe that most of the admins just wanna slap a player before they slay.

That's the overall opinion with the 15 admins on my server.

So it would be very nice do change the menu so the slap-option would come up first.
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 04-21-2004 , 15:25   Jiha!!
Reply With Quote #4

I found where you can change the code to make SLAP as default option instead of having SLAY.

In plmenu at aproxx line 334

Code:
public cmdSlapMenu(id,level,cid)
{
  if (!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED
    
  g_menuOption[id] = 0
  g_menuSettings[id] = 0
  
  displaySlapMenu(id,g_menuPosition[id] = 0)
  
  return PLUGIN_HANDLED 
}
Change to
Code:
public cmdSlapMenu(id,level,cid)
{
  if (!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED
    
  g_menuOption[id] = 1 // CHANGED this to 1 to make slap 0hp to be the first option
  g_menuSettings[id] = 0
  
  displaySlapMenu(id,g_menuPosition[id] = 0)
  
  return PLUGIN_HANDLED 
}
then i compiled and voila SLAY is default when you want to slap or slay a person.

Then I got into my server and it worked just like I wanted it to do.

the first choice is 0hp then 1 hp then 5 hp and last Slay

I believe that many others want to have it like that instead.
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 is offline
Eeyore
Member
Join Date: Apr 2004
Old 04-21-2004 , 17:47  
Reply With Quote #5

Thanks, I made use of that as well.

although I am a fan of the console, less limitations....and I'm faster to type in what I want then to search around in a menu
Eeyore is offline
Send a message via MSN to Eeyore
lantz69
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Sweden, Skåne
Old 04-21-2004 , 18:07  
Reply With Quote #6

good to know that someone else likes it
__________________
Using: Amxmodx 1.8.1.xxxx, cstrike
http://www.vanilla.se/
lantz69 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 19:16.


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