Immunity

Started by KAKAN, Aug 26, 2015, 07:14 PM

Previous topic - Next topic

KAKAN

I need this system player.Immunity
So now tell me
1. Its syntax
2. the default immunity(like world is 1 or 0)
oh no

.

Already asked a dozen on the forum. Search!
.

FinchDon

what difficult for this ? if playerImmunity is 255 then no one will kill him if his immunity is 0 then play like a normal
For any help and support Join #s-s at IRC for Help in Scripting
( For Newbies )

EK.IceFlake

And WTF is playerImmunity?
Noob detected
Destroying statement "You Know What Peoples Call me Noob But Remember In Life The Man Who Called Noob is best of you all"
Noob has been successfully destroyed
True purpose of server done
Exitting...

EK.IceFlake

Btw it uses flags and flags define "whatproof" the player is. For example fireproof, bulletproof, et cetera.
They appear like this in binary ...<flag3><flag2><flag1>
More detailed explanation by Stormeus

FinchDon

Quote from: NE.CrystalBlue on Aug 27, 2015, 05:06 AMAnd WTF is playerImmunity?
Noob detected
Destroying statement "You Know What Peoples Call me Noob But Remember In Life The Man Who Called Noob is best of you all"
Noob has been successfully destroyed
True purpose of server done
Exitting...


What the Fuck??
For any help and support Join #s-s at IRC for Help in Scripting
( For Newbies )

KAKAN

Hmm NE.Crystal to whom are u saying, Finchdon don't post sh!t out here, SLC told to search, so i can search it too
oh no

KAKAN

Oye and yes if player immunity is 255 can he/she fall down?
oh no

FinchDon

Quote from: KAKAN on Aug 27, 2015, 08:33 AMOye and yes

What is That

Quote from: KAKAN on Aug 27, 2015, 08:33 AMOye and yes if player immunity is 255 can he/she fall down?

I Don't know but i think if player press window button his immunity set to 255 he can fall down but hp is remain same
For any help and support Join #s-s at IRC for Help in Scripting
( For Newbies )

Xmair


Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

KAKAN

oh no

KAKAN

But your code won't work as there is no GetTok function in-built in an server and GetPlayer too
oh no

soulshaker

Quote from: StormeusBinary  | Hex  | Dec | Field
---------------------------------------
0b00001 | 0x1  |  1  | bulletproof
0b00010 | 0x2  |  2  | fireproof
0b00100 | 0x4  |  4  | explosion-proof
0b01000 | 0x8  |  8  | collision-proof
0b10000 | 0x10 |  16 | melee-proof


0 means no immunity to any damage, 31 means immunity to all damage. You can add all the numbers together or use bitwise OR/AND to toggle flags.
Just searching forum can solve almost many problems

Quote from: Xmair on Aug 27, 2015, 10:49 AMWiki source updated.
By me, Here
Maybe its more understandable now?

Xmair

Quote from: soulshaker on Aug 27, 2015, 07:17 PM
Quote from: StormeusBinary  | Hex  | Dec | Field
---------------------------------------
0b00001 | 0x1  |  1  | bulletproof
0b00010 | 0x2  |  2  | fireproof
0b00100 | 0x4  |  4  | explosion-proof
0b01000 | 0x8  |  8  | collision-proof
0b10000 | 0x10 |  16 | melee-proof


0 means no immunity to any damage, 31 means immunity to all damage. You can add all the numbers together or use bitwise OR/AND to toggle flags.
Just searching forum can solve almost many problems

Quote from: Xmair on Aug 27, 2015, 10:49 AMWiki source updated.
By me, Here
Maybe its more understandable now?
Yeah, It is. Thanks. I was in my university or I was gonna do it that way :)

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD