Problem to script a gang

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
19_Steve_89
Jaywalker
Jaywalker
Posts: 9
Joined: 14 Feb 2010, 19:52
GH nick: Steve

Problem to script a gang

Post by 19_Steve_89 »

I have made a multiplayer map with two gangs.
But the respect doesn´t chance when i kill gang members.
The respect only changes when i destroy or steal a gang car.
Can someone tell me how to script?
This is my script:

SET_GANG_INFO ( russgang , 10 , pistol , shotgun , machine_gun , 7 , 246.5 , 22.5 , 2.0 , 10 , buick , 28 )

SET_GANG_INFO ( krisgang , 9 , pistol , molotov , flame_thrower , 6 , 156.5 , 10.5 , 2.0 , 10 , krsnabus , -1 )

SET_GANG_KILL_REACTION ( russgang , krisgang , 10 )
SET_GANG_KILL_REACTION ( krisgang , russgang , 10 )

What is wrong?
User avatar
Lantyz
Psycho
Psycho
Posts: 71
Joined: 14 Apr 2009, 08:20
GH nick: Lantyz
Location: The Netherlands
Contact:

Re: Problem to script a gang

Post by Lantyz »

Welcome at GTAMP, Steve! I see LEVELSTART and LEVELEND are missing in your example. Make sure the SET_GANG_KILL_REACTION commands are placed after LEVELSTART, and the SET_GANG_INFO commands before LEVELSTART. The rest of your code looks fine. See also Creating gangs (GTA2) at WikiGTA.
Razor
Lunatic
Lunatic
Posts: 456
Joined: 19 Jul 2008, 14:14
GH nick: Razor, R
Location: Poland / Szczecin
Contact:

Re: Problem to script a gang

Post by Razor »

also if you paste a script from gta use that tags: [code][/code]
19_Steve_89
Jaywalker
Jaywalker
Posts: 9
Joined: 14 Feb 2010, 19:52
GH nick: Steve

Re: Problem to script a gang

Post by 19_Steve_89 »

Thank you for your very fast help.
Now it works.
Is there a list with all Gang IDs where i can see what icon they have?
User avatar
Gustavob
Immortal
Posts: 407
Joined: 18 May 2009, 21:40
GH nick: Gustavob
|Gustavob|
Location: Nowhere.
Contact:

Re: Problem to script a gang

Post by Gustavob »

http://en.wikigta.org/wiki/Code_lists_% ... ter_remaps
remaps 5-13 are gang remaps, but all of those remaps can be used in "outfit" parameter.
You just lost the game.
Razor
Lunatic
Lunatic
Posts: 456
Joined: 19 Jul 2008, 14:14
GH nick: Razor, R
Location: Poland / Szczecin
Contact:

Re: Problem to script a gang

Post by Razor »

Galactic Boy
Immortal
Posts: 334
Joined: 15 Apr 2012, 08:26

Re: Problem to script a gang

Post by Galactic Boy »

SET_GANG_INFO ( russgang , 10 , pistol , shotgun , machine_gun , 7 , 246.5 , 22.5 , 2.0 , 10 , buick , 28 )

SET_GANG_INFO ( krisgang , 9 , pistol , molotov , flame_thrower , 6 , 156.5 , 10.5 , 2.0 , 10 , krsnabus , -1 )

SET_GANG_KILL_REACTION ( russgang , krisgang , 10 )
SET_GANG_KILL_REACTION ( krisgang , russgang , 10 )
The value that in SET_GANG_KILL_REACTION command that you wrote is wrong. This value must be 1 through 5. ;)
User avatar
Pyro
Immortal
Posts: 414
Joined: 17 Mar 2010, 04:07
GH nick: Pyro
Location: Wales, UK

Re: Problem to script a gang

Post by Pyro »

Image
User avatar
Sektor
Boss
Boss
Posts: 1426
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Problem to script a gang

Post by Sektor »

A medic ped raising a thread would be more suitable.
User avatar
Pyro
Immortal
Posts: 414
Joined: 17 Mar 2010, 04:07
GH nick: Pyro
Location: Wales, UK

Re: Problem to script a gang

Post by Pyro »

It's Friday here, plus I like the look of it too :P
Post Reply