Raised This Month: $ Target: $400
 0% 

Restricting CT's from buying in Shop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 01-01-2010 , 19:05   Restricting CT's from buying in Shop
Reply With Quote #1

Alright, so I'm editing xPaw's HnS Shop for my server and I'm implementing an awp. I need to restrict the counter terrorists from being able to buy the awp when they type /vgshop(/hnsshop). At the moment I have
Code:
// My Attempt at restricting AWPs to CT's.
   if(CS_TEAM(id) == 2) {
    ColorChat(id, BLUE, "^x04[Vengeful Gaming Shop]^x01 This item is restricted to CTs!");
    return PLUGIN_HANDLED;
   }
I'm very aware that this coding is wrong, and I'd appreciate it if anyone would be kind enough as to help me with this block.

Thanks,
wrecked
wrecked_ is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-01-2010 , 19:10   Re: Restricting CT's from buying in Shop
Reply With Quote #2

Sure it's necessary? ^^
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 01-01-2010 , 19:22   Re: Restricting CT's from buying in Shop
Reply With Quote #3

here you have
PHP Code:
if(get_user_team == 2
{
      
wathever you want

__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 01-01-2010 , 19:27   Re: Restricting CT's from buying in Shop
Reply With Quote #4

Ahah, I believe so, crazy.

Thanks for the code. +k

-wrecked
wrecked_ is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-01-2010 , 19:36   Re: Restricting CT's from buying in Shop
Reply With Quote #5

Karma is gone, lol
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 01-01-2010 , 21:50   Re: Restricting CT's from buying in Shop
Reply With Quote #6

rofl I posted the reply then realized there was no karma button. Figured nobody would say anything.
wrecked_ 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 04:16.


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