Raised This Month: $ Target: $400
 0% 

vip feature


Post New Thread Reply   
 
Thread Tools Display Modes
SkazzY
AlliedModders Donor
Join Date: Nov 2014
Location: Forbidden Forest
Old 04-07-2016 , 17:07   Re: vip feature
Reply With Quote #11

1st reason : He doesn't know how :facepalm:
2nd reason : Your plugin works on all players, but you can not make it for VIPs only since you don't know which flag he wants...
SkazzY is offline
counter1strike6
Senior Member
Join Date: Sep 2014
Location: morocco
Old 04-07-2016 , 19:17   Re: vip feature
Reply With Quote #12

very easy although that im not sure this is what the op want

flag t used by default for vip access level
PHP Code:
#include <amxmodx>
#include <cstrike>
 
#define PLUGIN "Kill bonus"
#define VERSION "1.0"
#define AUTHOR "EFFx"
 
#define VIP_LEVEL ADMIN_LEVEL_H
public plugin_init() 
{
 
register_plugin(PLUGINVERSIONAUTHOR)
  
 
register_event("DeathMsg","fw_Death","a")
}
public 
fw_Death()
{
 new 
iDead read_data(2)
 new 
iKiller read_data(1)
 if(
is_user_alive(iKiller) && get_user_flags(iKiller) & VIP_LEVEL &&iKiller != iDead)
 {
  
cs_set_user_money(iKiller,cs_get_user_money(iKiller) + 2700//+300$ by default game kill bonus
 
}

__________________
Vitamin-C was here

Last edited by counter1strike6; 04-07-2016 at 19:18.
counter1strike6 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-07-2016 , 19:27   Re: vip feature
Reply With Quote #13

Quote:
Originally Posted by SkazzY View Post
1st reason : He doesn't know how :facepalm:
2nd reason : Your plugin works on all players, but you can not make it for VIPs only since you don't know which flag he wants...
I dont know how? AHAHAHAHA
Lets go x1 with amxx my friend.

Dont say what do you dont know

Quote:
Originally Posted by counter1strike6 View Post
very easy although that im not sure this is what the op want

flag t used by default for vip access level
PHP Code:
 #include <amxmodx>
 #include <cstrike>
  
 #define PLUGIN "Kill bonus"
 #define VERSION "1.0"
 #define AUTHOR "EFFx"
  
 #define VIP_LEVEL ADMIN_LEVEL_H
 
public plugin_init() 
 {
 
register_plugin(PLUGINVERSIONAUTHOR)
   
  
register_event("DeathMsg","fw_Death","a")
 }
 public 
fw_Death()
 {
  new 
iDead read_data(2)
  new 
iKiller read_data(1)
  if(
is_user_alive(iKiller) && get_user_flags(iKiller) & VIP_LEVEL &&iKiller != iDead)
  {
   
cs_set_user_money(iKiller,cs_get_user_money(iKiller) + 2700//+300$ by default game kill bonus
  
}
 } 
Yes, now you is a helper member, not a critic
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-07-2016 at 19:28.
EFFx is offline
counter1strike6
Senior Member
Join Date: Sep 2014
Location: morocco
Old 04-07-2016 , 19:47   Re: vip feature
Reply With Quote #14

im always helper memeber even for you ;)
__________________
Vitamin-C was here
counter1strike6 is offline
Kheiro
Member
Join Date: Mar 2014
Old 04-07-2016 , 20:50   Re: vip feature
Reply With Quote #15

u still didn't tell where should i put this code ! :d
Kheiro is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-07-2016 , 21:03   Re: vip feature
Reply With Quote #16

compile the .sma
add the .amxx in addons/amxmodx/plugins

Later, write the plugin name in addons/amxmodx/configs/plugins.ini

Example:

vip_feature.amxx
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-07-2016 at 21:04.
EFFx is offline
Kheiro
Member
Join Date: Mar 2014
Old 04-07-2016 , 21:41   Re: vip feature
Reply With Quote #17

Quote:
Originally Posted by EFFx View Post
compile the .sma
add the .amxx in addons/amxmodx/plugins

Later, write the plugin name in addons/amxmodx/configs/plugins.ini

Example:

vip_feature.amxx
can u make the mand send them to me?
Kheiro is offline
counter1strike6
Senior Member
Join Date: Sep 2014
Location: morocco
Old 04-08-2016 , 02:35   Re: vip feature
Reply With Quote #18

vip_feature.sma
__________________
Vitamin-C was here
counter1strike6 is offline
Kheiro
Member
Join Date: Mar 2014
Old 04-08-2016 , 11:27   Re: vip feature
Reply With Quote #19

Quote:
Originally Posted by counter1strike6 View Post
what ab out the .amxx
Kheiro is offline
counter1strike6
Senior Member
Join Date: Sep 2014
Location: morocco
Old 04-08-2016 , 12:11   Re: vip feature
Reply With Quote #20

open sma with notepad copy all and past on webcompiler then click compile
http://www.amxmodx.org/webcompiler.cgi
__________________
Vitamin-C was here
counter1strike6 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 19:07.


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