Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Petrus

cod stary Item ubranie wroga + szansa na resp u wroga

Brak odpowiedzi w tym temacie

Recommended Posts

w public Odrodzenie wklejamy to:

 

    if(informacje_przedmiotu_gracza[id][0] == X && random_num(1, 3) == 1) // szansa 1/3 na odrodzenie się u wroga

    {

        spawn_u_wroga(id)
        ZmienUbranie(id, 0);

    }

Za X dajemy swój numer itemu!

Na koniec *.sma wklejamy to:

 

public spawn_u_wroga(id)

{

    new CsTeams:team=cs_get_user_team(id)

    cs_set_user_team(id,((team==CS_TEAM_CT)? CS_TEAM_T: CS_TEAM_CT),CS_DONTCHANGE)

    ExecuteHam(Ham_Spawn,id)

    cs_set_user_team(id,team,CS_DONTCHANGE)

    return 0

}

 

Share this post


Link to post
Share on other sites
  • Like 1

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×