Raised This Month: $ Target: $400
 0% 

Restricting CT's from buying in Shop


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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