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

Two Awp in round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lantimilan
Senior Member
Join Date: May 2016
Old 08-10-2020 , 10:26   Two Awp in round
Reply With Quote #1

Hello its possible to make one plugin to allow to buy just to awp 1 for ct one for t who first buy and to stoped buying more just for round , and if possible when somebody try to buy to see Sorry just 2 AWP allowed to buy here, try in new round?

Last edited by lantimilan; 08-13-2020 at 02:06.
lantimilan is offline
Send a message via MSN to lantimilan
Old 08-10-2020, 11:30
iceeedr
This message has been deleted by iceeedr. Reason: nvm
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-10-2020 , 14:05   Re: Two Awp in round
Reply With Quote #2

Are you using AMXX 1.9/10?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
lantimilan
Senior Member
Join Date: May 2016
Old 08-10-2020 , 16:15   Re: Two Awp in round
Reply With Quote #3

Now for now i need for 1.8.2 if you can, but and for future i need 1.9.0 if you can post two version

Last edited by lantimilan; 08-10-2020 at 17:06.
lantimilan is offline
Send a message via MSN to lantimilan
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-13-2020 , 07:39   Re: Two Awp in round
Reply With Quote #4

1.9 version:

Code:
#include <amxmodx> #include <cstrike> new bool:g_bBought[CsTeams] public plugin_init() {     register_plugin("1 AWP per Team", "1.0", "OciXCrom")     register_event("HLTV", "OnRoundStart", "a", "1=0", "2=0") } public OnRoundStart() {     g_bBought[CS_TEAM_T] = false     g_bBought[CS_TEAM_CT] = false } public CS_OnBuy(id, iItem) {     if(iItem == CSI_AWP)     {         new CsTeams:iTeam = cs_get_user_team(id)         if(g_bBought[iTeam])         {             client_print(id, print_center, "Only 1 AWP per team is allowed! Try again next round.")             return PLUGIN_HANDLED         }         g_bBought[iTeam] = true     }     return PLUGIN_CONTINUE }

I'm really not willing to do the 1.8.2 one because the API doesn't provide an easy way of doing it.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
lantimilan
Senior Member
Join Date: May 2016
Old 08-13-2020 , 11:10   Re: Two Awp in round
Reply With Quote #5

thanks ocixcrom
lantimilan is offline
Send a message via MSN to lantimilan
Reply


Thread Tools
Display Modes

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 13:13.


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