Raised This Month: $ Target: $400
 0% 

[VIP] DeathRun VIP!


Post New Thread Reply   
 
Thread Tools Display Modes
Kukulis :*
Member
Join Date: Apr 2009
Location: www.godlike.lt
Old 07-16-2009 , 09:59   Re: [VIP] DeathRun VIP!
Reply With Quote #81

what ?
Kukulis :* is offline
Send a message via Skype™ to Kukulis :*
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-16-2009 , 10:05   Re: [VIP] DeathRun VIP!
Reply With Quote #82

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> #define PLUGIN_NAME "vipas" #define PLUGIN_AUTHOR "Kukulis" #define PLUGIN_VERSION "0.1" static const COLOR[] = "^x04" static const CONTACT[] = "" new maxplayers new gmsgSayText public plugin_init() {     register_plugin(PLUGIN_NAME, PLUGIN_AUTHOR, PLUGIN_VERSION);         register_event("ResetHUD","event_reset_hud","be");     register_event("ResetHUD", "resetModel", "b")     register_clcmd("say /vip","admin_motd",0,"- Shows the MOTD.")         register_clcmd("say", "handle_say")     register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)     gmsgSayText = get_user_msgid("SayText")         maxplayers = get_maxplayers()         return PLUGIN_CONTINUE     } public plugin_precache() {     precache_model("models/player/smith/smith.mdl")     precache_model("models/player/smith/smith.mdl")         return PLUGIN_CONTINUE } public resetModel(id, level, cid) {     if (get_user_flags(id) & ADMIN_CVAR) {         new CsTeams:userTeam = cs_get_user_team(id)         if (userTeam == CS_TEAM_T) {             cs_set_user_model(id, "smith")         }         else if(userTeam == CS_TEAM_CT) {             cs_set_user_model(id, "smith")         }         else {             cs_reset_user_model(id)         }     }         return PLUGIN_CONTINUE } public event_reset_hud(id) {     if(!is_user_connected(id))         return PLUGIN_CONTINUE;         client_print(id, print_chat, "[VIP] Write /vip To see the VIP privileges.")         if(!access(id,ADMIN_CVAR))         return PLUGIN_CONTINUE;         give_stuff(id)         return PLUGIN_CONTINUE; } public admin_motd(id,level,cid) {         if (!cmd_access(id,level,cid,1))         return PLUGIN_CONTINUE         show_motd(id,"vip.txt","VIP by Kukulis")     return PLUGIN_CONTINUE   } public give_stuff(id) {     if(!is_user_connected(id))         return;         give_item(id, "item_assaultsuit");     give_item(id, "weapon_flashbang");     give_item(id, "weapon_flashbang");     give_item(id, "weapon_hegrenade");     give_item(id, "weapon_smokegrenade");     cs_set_user_money(id, cs_get_user_money(id) + 500);     //set_user_gravity(id, 0.750)     give_item(id, "weapon_deagle")     cs_set_user_bpammo(id, CSW_DEAGLE, 35) } public handle_say(id) {     new said[192]     read_args(said,192)     if(( containi(said, "who") != -1 && containi(said, "admin") != -1) || contain(said, "/vips") != -1)         set_task(0.1,"print_viplist", id)     return PLUGIN_CONTINUE } public print_viplist(user) {     new adminnames[33][32]     new message[256]     new contactinfo[256], contact[112]     new id, count, x, len         for(id = 1 ; id <= maxplayers ; id++)         if(is_user_connected(id))         if(get_user_flags(id) & ADMIN_CVAR)         get_user_name(id, adminnames[count++], 31)         len = format(message, 255, "%s Online VIP: ",COLOR)     if(count > 0) {         for(x = 0 ; x < count ; x++) {             len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")             if(len > 96 ) {                 print_message(user, message)                 len = format(message, 255, "%s ",COLOR)             }         }         print_message(user, message)     }     else {         len += format(message[len], 255-len, "No online VIP.")         print_message(user, message)     }         get_cvar_string("amx_contactinfo", contact, 63)     if(contact[0])  {         format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact)         print_message(user, contactinfo)     } } print_message(id, msg[]) { message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id) write_byte(id) write_string(msg) message_end() }

I didn't get if you wanted normal gravity or lower gravity but the deagle with full ammo is in there and the model is, too.
If you do want lower gravity then remove // before
Code:
set_user_gravity(id, 0.750)
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Extremist
BANNED
Join Date: Jul 2009
Old 07-16-2009 , 12:04   Re: [VIP] DeathRun VIP!
Reply With Quote #83

Ty got it to work
but 1 problem a VIP person can drop the deagle and a nother NON VIP person can pick it up

Last edited by Extremist; 07-16-2009 at 14:23.
Extremist is offline
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 07-16-2009 , 14:28   Re: [VIP] DeathRun VIP!
Reply With Quote #84

+Karma
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 07-16-2009 , 15:31   Re: [VIP] DeathRun VIP!
Reply With Quote #85

!? Models dont get !! Please upload a amxx what load the Models !!
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
Extremist
BANNED
Join Date: Jul 2009
Old 07-16-2009 , 15:39   Re: [VIP] DeathRun VIP!
Reply With Quote #86

models work and dont double post
Extremist is offline
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 07-16-2009 , 15:52   Re: [VIP] DeathRun VIP!
Reply With Quote #87

Models dont work !
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 07-16-2009 , 16:06   Re: [VIP] DeathRun VIP!
Reply With Quote #88

The models might work or might not work. Since this is poorly coded and seriously need a makeover. (No offence)
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Kukulis :*
Member
Join Date: Apr 2009
Location: www.godlike.lt
Old 07-22-2009 , 02:22   Re: [VIP] DeathRun VIP!
Reply With Quote #89

model nice .
Kukulis :* is offline
Send a message via Skype™ to Kukulis :*
keitHy
Member
Join Date: Aug 2009
Old 08-12-2009 , 19:50   Re: [VIP] DeathRun VIP!
Reply With Quote #90

Am i right , BOT's can't DR?
Nice , and cool Plugin
__________________
--ALERT-- NO SIGNATURE! --ALERT--
keitHy 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 11:14.


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