Raised This Month: $105 Target: $400
 26% 

Admin NoBuy


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   SniperBeamer (61)
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 04-03-2004 , 15:47   Admin NoBuy
Reply With Quote #1

A simple plugin to stop specific players from buying Made by me AssKicR.
Used some code that Scarzzurs Posted so creds go to him too... Anyways Enjoy This plug

Tested for AMXx by DoubleTap
Attached Files
File Type: sma Get Plugin or Get Source (admin_nobuy.sma - 3750 views - 6.7 KB)
__________________
My Plugins

Got ??
AssKicR is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-25-2005 , 23:37  
Reply With Quote #2

So if admins buy something, it doesnt take money out of their 16000? THis would be for the other admins that dont have admin_weapon adn bind everything they need to one key.
__________________
bmann_420 is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 07-27-2005 , 13:39  
Reply With Quote #3

no. this blocks people from buying
__________________
My Plugins

Got ??
AssKicR is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-27-2005 , 13:51  
Reply With Quote #4

Ahhhh. people=(admins)? And why would u want that? Just wondering for my own inlightenment
__________________
bmann_420 is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 07-27-2005 , 13:57  
Reply With Quote #5

amx_nobuy <authid, nick, @team or #userid>
amx_rebuy <authid, nick, @team or #userid>

First command blocks persons ability to buy
second command enables it
__________________
My Plugins

Got ??
AssKicR is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-27-2005 , 14:46  
Reply With Quote #6

Its way too early for me, thanks Kicker, for dealin with these stupid questions
__________________
bmann_420 is offline
ali_zkz
Member
Join Date: Jan 2006
Old 09-08-2006 , 00:14   Re: Admin NoBuy
Reply With Quote #7

COOL
ali_zkz is offline
amxnewbie
Junior Member
Join Date: Sep 2007
Old 11-07-2007 , 05:00   Re: Admin NoBuy
Reply With Quote #8

May I know in which case this happens? I'm thinking whether I need this section because it seems quite inefficient.
Code:
#if !defined NO_STEAM
public client_command(id){  //from AssKicr
 if (BuyBlock[id]) {
  new arg[13]
  if (read_argv(0, arg, 12) > 11) /* Longest buy command has 11 chars so if command is longer then don't care */ 
   return PLUGIN_CONTINUE 
  new a = 0 
  do {
   if (equal(g_Aliases[a], arg) || equal(g_Aliases2[a], arg)) { 
    return PLUGIN_HANDLED 
   }
  } while(++a < MAXMENUPOS)
 }
 
 return PLUGIN_CONTINUE 
} 
#endif
amxnewbie is offline
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 15:31.


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