Page 1 of 1

Pirmas round'as knife

Posted: 2013 Jan 26 10:11
by Cabexxx
Sveiki, naudoju Public serva, gal zinot kaip padaryti kad tik pirmas round'as butu: knife ? be jokiu dm'u, tiesiog public modo.

Re: Pirmas round'as knife

Posted: 2013 Jan 26 11:08
by laimiukas3

Code: Select all

#include <amxmodx>  new g_iRoundCount new g_pcvarEnable  public plugin_init() {     register_plugin("First Round Knife", "0.1", "ConnorMcLeod")      g_pcvarEnable = register_cvar("frk_enabled", "1")      register_logevent("eRoundEnd", 2, "1=Round_End")     register_event("TextMsg","eRestart","a","2&#Game_C","2&#Game_w")     register_event("CurWeapon", "eCurWeapon", "be", "1=1", "2!29") }  public eRoundEnd() {     g_iRoundCount++ }  public eRestart() {     g_iRoundCount = 0 }  public eCurWeapon(id) {     if(g_iRoundCount || !get_pcvar_num(g_pcvarEnable))         return     engclient_cmd(id, "weapon_knife") } 

Re: Pirmas round'as knife

Posted: 2013 Jan 26 11:18
by Cabexxx
Kiek suprantu cia .sma failas?

Re: Pirmas round'as knife

Posted: 2013 Jan 26 11:19
by psychical
Cabexxx wrote:Kiek suprantu cia .sma failas?
Na, taip

Re: Pirmas round'as knife

Posted: 2013 Jan 26 11:22
by Cabexxx
Dekui :)