Page 1 of 1

knife kill

Posted: 2011 May 22 10:22
by aurimasko
kaip sužinoti ar žaidėjas nužudė žaidėja su knife?

Re: knife kill

Posted: 2011 May 22 10:49
by KieC
Tai kad kai nužudai žaideja su knife rodo kas jį nužudė...

Re: knife kill

Posted: 2011 May 22 10:50
by aurimasko
KieC wrote:Tai kad kai nužudai žaideja su knife rodo kas jį nužudė...
tu durnas ar apsimeti? čia gi skiltis scriptingas, tai aš klausiu kaip sužinoti plugine..

Re: knife kill

Posted: 2011 May 22 10:51
by KieC
Aik n* išvis d***s...

Re: knife kill

Posted: 2011 May 22 11:20
by psychical

Code: Select all

 public Hook_Deathmessage(){    new killer = read_data(1)    new weapon = get_user_weapon(killer, _, _);      if(!is_user_alive(killer))       return;     if(weapon == CSW_KNIFE)    {        //kazkas atsitinka    } }

Re: knife kill

Posted: 2011 May 22 12:11
by hleV

Code: Select all

public plugin_init()    register_event("DeathMsg", "OnPostDeathMsg", "1>0", "4=knife"); public OnPostDeathMsg(){    //new killer = read_data(1);    //new victim = read_data(2);}

Re: knife kill

Posted: 2011 May 22 12:36
by aurimasko
hleV wrote:

Code: Select all

public plugin_init()    register_event("DeathMsg", "OnPostDeathMsg", "1>0", "4=knife"); public OnPostDeathMsg(){    //new killer = read_data(1);    //new victim = read_data(2);}
kitas klausimas, kaip išsaukti motd langą kuriame pvz. surašyti prisijungę vipai.

Re: knife kill

Posted: 2011 May 25 01:51
by newb

Code: Select all

public motd(id) {        new text[222], len        len = formatex(text, charsmax(text), "Vipai<br><br>")        for(new i = 1, name[30]; i <= get_playersnum(); i++)        if(get_user_flags(i) & ADMIN_LEVEL_H) {            get_user_name(i, name, charsmax(name))            len += format(text[len], charsmax(text) - len, "%s", name)        }        show_motd(id, text, "vipai")}