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