hlmod.hu
https://hlmod.hu/

Csapat visszaállítás gond:/
https://hlmod.hu/viewtopic.php?f=10&t=3785
Oldal: 1 / 1

Szerző:  IrOn [2012.03.20. 17:26 ]
Hozzászólás témája:  Csapat visszaállítás gond:/

MEGOLDVA!

[s]Na még mindig gondom van csapat visszaállítással, így próbáltam:
End event:
Kód:
public fwdEnd(id)
{
    is_round_accepted = false
    is_round_problem 
= false
    is_round_normal 
= false
    set_lights
("m")
    AcceptedKuldetes = false
    if
(team[id] == 2)
    {
        teamct(id)
        client_print(id, print_chat, "Visszaallitva CT-be")
    }
    else if(team[id] == 1)
    {
        teamte(id)
        client_print(id, print_chat, "Visszaallitva Terrorba")
    }
    else
    
{
        client_print(id, print_chat, "Nem voltal itt csapatmentesnel") //Mindig ez fut le(Csináltam 1 parancsot ami kiírja melyik csapatban vagyok, de úgy is ez fut le, pedig mást ír!
    }
    is_round_alone = false
    client_print
(id, print_chat, "eddig lefut") // Ez még lefut
    new CsTeams:userTeam = cs_get_user_team(id)
    if(userTeam == CS_TEAM_CT)
    {
        cs_set_user_model(id, "trollfacect")
    }
    else if(userTeam == CS_TEAM_T)
    {
        cs_set_user_model(id, "trollfacete")
    }
    client_print(id, print_chat, "Lefut teams utan") //Erről már ne beszéljünk, ez le se fut :D


team megadás:
természetesen get_players és ilyesmi van előtte, azzal nincs gond
Kód:
for(new h = 0; h<pnum; h++)
    {
        new uteam = get_user_team(players[h])
        team[players[h]] = uteam
    
[/s]

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/