he buy block

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
User avatar
xDede
Jau po truputį tampa savu
Posts: 113
Joined: 2011 Jun 01 19:30
Skype: cicinas2
Location: Telsiai
Contact:

he buy block

Post by xDede »

Turiu toki koda bet leidzia pirkti he granata per old style menu,
reike pagalbos kad neleistu pirkti he grananatos ber abu buy menu.

Code: Select all

#include <amxmodx>#include <amxmisc>#include <cstrike>#include <fun> public plugin_init() {    register_plugin("blocker", "0.1", "xDede");    register_clcmd("hegren", "he_block");} public he_block(id) {     new CsTeams:userTeam = cs_get_user_team(id)     if (userTeam == CS_TEAM_CT) {     return PLUGIN_CONTINUE;     }     return PLUGIN_HANDLED_MAIN;} 

newb
Pluginų patvirtintojas
Posts: 1047
Joined: 2010 Sep 23 21:43
Location: Wonderland
Contact:

Re: he buy block

Post by newb »

Code: Select all

#include <amxmodx> public plugin_init() {    register_plugin("blocker", "0.1", "xDede")        register_clcmd("hegren", "he_block")    register_menucmd(register_menuid("BuyItem"), 1<<3, "he_block")} public he_block(id) {    if (get_user_team(id) == 2)        return PLUGIN_CONTINUE     return PLUGIN_HANDLED}

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests