AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Admin NoBuy (https://forums.alliedmods.net/showthread.php?t=837)

AssKicR 04-03-2004 14:47

Admin NoBuy
 
1 Attachment(s)
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

bmann_420 07-25-2005 22:37

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.

AssKicR 07-27-2005 12:39

no. this blocks people from buying :twisted: :twisted: :twisted:

bmann_420 07-27-2005 12:51

Ahhhh. people=(admins)? And why would u want that? Just wondering for my own inlightenment :D

AssKicR 07-27-2005 12:57

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

bmann_420 07-27-2005 13:46

Its way too early for me, thanks Kicker, for dealin with these stupid questions :x :D

ali_zkz 09-07-2006 23:14

Re: Admin NoBuy
 
COOL

amxnewbie 11-07-2007 04:00

Re: Admin NoBuy
 
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



All times are GMT -4. The time now is 05:01.

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