LOGO
Username Icons
100$
Username Effects
150$
Username Change
300$
Profile Cover
250$
Userbar Hue
100$
Change Username Color
1000$
Spotify listening status
150$
Arcade access
400$
Reputation power
500$
Warn Remover ( -1 )
5000$
Customize your MyBB profile with our shop’s options! Choose from username changes, colors, and profile covers and more others to enhance your forum identity.
Go to shop
CSGO.WTFCS.COM
Connect
CS.WTFCS.COM
Connect
XMAS.WTFCS.COM
Connect
PB.WTFCS.COM
Connect
DR.WTFCS.COM
Connect
WAR.WTFCS.COM
Connect
WAR1.WTFCS.COM
Connect
www.Game-State.com
SAMP
Connect
www.Game-State.com
MINECRAFT
Connect
Hello There, Guest!
If you encounter issues with quick login, use the link below for direct access.
Open Log In ( Directly page )
×
Register
Show Serverlist
ChatBox
345
Damage Settings
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
#1
Autor: khain

Daca doresti sa modifici caracteristica unei arme, atunci ai venit in topicul potrivit.



Code:
/* define prescurtari ( pentru comoditate ) [ individual ]*/

#define SetPlayerHealth sph
#define GetPlayerHealth gph
#define playerid pi



public
  OnPlayerTakeDamage(pi, issuerid, Float: amount, weaponid) {
 
  /*armour */
  new
    Float: lh
  ; /* variabila care va raspunde de damage */
  gph(pi, lh); /* atribuim variabila catre viata jucatorului, cand impusti in player, i se va modifica procentajul introdus mai jos*/
  switch(weaponid) {
     
    case 31: /* id arma */
      sph(pi, lh - 4); // [ ( -4 ) - hp-ul playerului scade cu 4 procente ]
     
    /* Daca doresti, poti adauga random damage */
    case 31: {
     switch(random(4)) {
       case 0:
         sph(pi, lh - 5);
       case 1:
         sph(pi, lh - 23);
       case 2:
         sph(pi, lh - 10);
       case 3:
         sph(pi, lh - 6);
       /*------------------------------------------ */   
       }
    }
    /* Daca doresti, poti adauga doar damage pe o anumita parte a corpului*/
    case 31: {
        switch (bodypart) // id parte a corpului
        {
            case 3: sph(pi, lh-12);
        }
    }
  }
  return 1;
}

/* Partile corpului id */
3 - Trunchi
4 - Partea abdomenului
5 - Mâna stângă
6 - Mâna dreaptă
7 - Piciorul stâng
8 - Piciorul drept
9 - Cap
/*------------------------------------------ */ 
Mihai nu face flotari, el le cumpara gata facute!
Mihai s-a nascut intr-o cabana construita de el.
Mihai a omorat 50 de teroristi din 2 gloante.Primul a fost de avertizare.
Mihai poate sa isi faca poze cu telefonul fix.
Mihai a raspuns la un apel pierdut.
Singura femeie care si-a permis sa faca glume despre Mihai a fost Elodia, de aia nu mai este.
Cand Mihai iti arata degetul nu o face ca sa te injure... doar iti arata cate secunde mai ai de trait!
You are not allowed to view links. Register or Login to view.
You are not allowed to view links. Register or Login to view. You are not allowed to view links. Register or Login to view. 


Forum Jump:


Users browsing this thread: 1 Guest(s)