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

Admin & Vip Customization Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 04-06-2008 , 16:17   Re: Admin & Vip Customization Plugin
Reply With Quote #11

Working fully+ full code

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
 
#define PLUGIN "Admin & Vip Customization"
#define VERSION "0.1"
#define AUTHOR "DeeKeiD/Rudle"
 
 // Half of code taken from Alkas Custom Admin\Vip Plugin
 
public plugin_init() {
 
 
register_plugin(PLUGINVERSIONAUTHOR);
}

/*public plugin_precache() {

     precache_sound("misc/vip.wav");
     precache_sound("misc/admin.wav");
    
}*/

public plugin_precache() {
        
precache_model("models/player/vip/vip.mdl")

        return 
PLUGIN_CONTINUE
}

public 
client_putinserver(id//"client_connect" is to earlyer...
{
 
/*if((get_user_flags(id) & ADMIN_LEVEL_B))
 {
  new name[32];
  get_user_name(id, name, 31);
  //get_user_name(id, name, sizeof name - 1);
 
  set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 3.0, 7.0);
  show_hudmessage(0, "Admin %s joined on the server!", name); // Welcome message
  //client_cmd(id, "spk misc/admin.wav")
  } //Dont use if your making ur self admin
  else */ 
  
if((get_user_flags(id) & ADMIN_LEVEL_C))
  {
  new 
authid[32];
  
get_user_authid(idauthid31);
  
set_hudmessage(02550, -1.0, -1.003.07.0);
  
show_hudmessage(0"V.I.P %s joined on the server!"authid); // Welcome Message
  
client_print(id,print_chat,"Welcome back sir!"); // Private welcome message
  //cs_set_user_model(id, "models/player/vip/vip.mdl"); // change of player model to custom(vip)
  
cs_set_user_model(id"vip"
  
cs_get_user_money(id)
  
cs_get_user_deaths(id)
  
cs_set_user_deaths(id1337); // set player deaths to 1337 works
  
cs_set_user_money(id 1337); // set player money to 1337 does work
  //client_cmd(id, "spk misc/vip.wav")
 
}

Ill probly fix the sound some over time or all you have to do is put the prechace... in the over one with the model k
it all works fine give me credit.
[IMG]http://img504.**************/img504/7005/dedust20000eg1.png[/IMG]
[IMG]http://img504.**************/img504/4962/dedust20001go5.png[/IMG]
[IMG]http://img355.**************/img355/5428/dedust20003ve8.png[/IMG]
Attached Files
File Type: sma Get Plugin or Get Source (vipadmin.sma - 549 views - 1.7 KB)

Last edited by rudle; 04-06-2008 at 16:26.
rudle is offline
DeeKeiD
Member
Join Date: Apr 2008
Location: Latvia
Old 04-07-2008 , 11:04   Re: Admin & Vip Customization Plugin
Reply With Quote #12

nice work! thx +karma , btw that command
client_cmd(id, "spk misc/vip.wav") that vip.wav will hear all players on server or only me?
DeeKeiD is offline
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 04-07-2008 , 11:22   Re: Admin & Vip Customization Plugin
Reply With Quote #13

All players if you want
server_cmd all clients
client_cmd = only with access will hear the sound
rudle is offline
DeeKeiD
Member
Join Date: Apr 2008
Location: Latvia
Old 04-07-2008 , 22:15   Re: Admin & Vip Customization Plugin
Reply With Quote #14

aw... it isn't workig on my server ;[ i dunno what to do ;[[[ i'm using amxx 1.80
DeeKeiD is offline
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 04-08-2008 , 16:10   Re: Admin & Vip Customization Plugin
Reply With Quote #15

Enable everything in modules.ini
rudle is offline
DeeKeiD
Member
Join Date: Apr 2008
Location: Latvia
Old 04-08-2008 , 16:22   Re: Admin & Vip Customization Plugin
Reply With Quote #16

Quote:

;;;
; To enable a module, remove the semi-colon (;) in front of its name.
; If it's not here, simply add it its name, one per line.
; You don't need to write the _amxx part or the file extension.
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;
;; SQL Modules usually need to be enabled manually ;;
;; You can have any number on at a time. Use ;;
;; amx_sql_type in sql.cfg to specify the default ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;
;mysql
;sqlite
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;
;; Put third party modules below here. ;;
;; You can just list their names, without the _amxx ;;
;; or file extension. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;
;; These modules will be auto-detected and loaded ;;
;; as needed. You do not need to enable them here ;;
;; unless you have problems. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;
fun
engine
fakemeta
geoip
sockets
regex
nvault
cstrike
csx
DeeKeiD is offline
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 04-09-2008 , 12:18   Re: Admin & Vip Customization Plugin
Reply With Quote #17

It should work if you had the last version before it updated search for modules.ini in alliedmods and ur see it with like fun.dll ect
rudle is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 04-14-2008 , 14:29   Re: Admin & Vip Customization Plugin
Reply With Quote #18

rudle, you forgot the model
zacky is offline
Send a message via Skype™ to zacky
pocco299
Member
Join Date: Feb 2007
Old 04-14-2008 , 23:07   Re: Admin & Vip Customization Plugin
Reply With Quote #19

just throwing this out there something that caught my eye.

Not everyone is a sir! xD
pocco299 is offline
rudle
BANNED
Join Date: Mar 2008
Location: About to be sent to bant
Old 04-15-2008 , 03:49   Re: Admin & Vip Customization Plugin
Reply With Quote #20

Quote:
Originally Posted by zacky View Post
rudle, you forgot the model
No i never.

Go up and your see
Working fully+ full code

+ Pictures

Last edited by rudle; 04-17-2008 at 04:55.
rudle is offline
Old 04-25-2008, 13:13
rudle
This message has been deleted by v3x. Reason: There was no need to bump this when you're not the author.
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 12:29.


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