Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: KAKAN on Aug 26, 2015, 07:14 PM

Title: Immunity
Post by: KAKAN on Aug 26, 2015, 07:14 PM
I need this system player.Immunity
So now tell me
1. Its syntax
2. the default immunity(like world is 1 or 0)
Title: Re: Immunity
Post by: . on Aug 26, 2015, 07:20 PM
Already asked a dozen on the forum. Search!
Title: Re: Immunity
Post by: FinchDon on Aug 27, 2015, 02:31 AM
what difficult for this ? if playerImmunity is 255 then no one will kill him if his immunity is 0 then play like a normal
Title: Re: Immunity
Post by: EK.IceFlake on Aug 27, 2015, 05:06 AM
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...
Title: Re: Immunity
Post by: EK.IceFlake on Aug 27, 2015, 05:08 AM
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
Title: Re: Immunity
Post by: FinchDon on Aug 27, 2015, 05:28 AM
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??
Title: Re: Immunity
Post by: KAKAN on Aug 27, 2015, 08:24 AM
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
Title: Re: Immunity
Post by: KAKAN on Aug 27, 2015, 08:33 AM
Oye and yes if player immunity is 255 can he/she fall down?
Title: Re: Immunity
Post by: FinchDon on Aug 27, 2015, 10:12 AM
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
Title: Re: Immunity
Post by: Xmair on Aug 27, 2015, 10:49 AM
Wiki source updated.
By me, Here (http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Player.Immunity)
Title: Re: Immunity
Post by: KAKAN on Aug 27, 2015, 11:14 AM
Ty
Title: Re: Immunity
Post by: KAKAN on Aug 27, 2015, 11:15 AM
But your code won't work as there is no GetTok function in-built in an server and GetPlayer too
Title: Re: Immunity
Post by: 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 (http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Player.Immunity)
Maybe its more understandable now?
Title: Re: Immunity
Post by: Xmair on Aug 28, 2015, 07:32 AM
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 (http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Player.Immunity)
Maybe its more understandable now?
Yeah, It is. Thanks. I was in my university or I was gonna do it that way :)