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

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 , 14: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 - 4177 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 , 22: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 , 12: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 , 12: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 , 12: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 , 13: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-07-2006 , 23:14   Re: Admin NoBuy
Reply With Quote #7

COOL
ali_zkz is offline
amxnewbie
Junior Member
Join Date: Sep 2007
Old 11-07-2007 , 04: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



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 09:21.


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