Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: SomeoneRandom on Mar 28, 2016, 10:13 AM

Title: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: SomeoneRandom on Mar 28, 2016, 10:13 AM
I need to set different weapons for different teams. how to set?
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: KAKAN on Mar 28, 2016, 01:48 PM
Another thing: The max ammo seems to be 200. If you set more than that, then you're done.
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: Luis_Labarca on Mar 28, 2016, 10:09 PM
You can add them also in onplayerspawn

function onPlayerSpawn (player)
{
example
If (player. Team == 1) player. SetWeapon (26,200), player. SetWeapon (27,200), player. SetWeapon (30,200), player. SetWeapon (22,200);
If (player. Team == 2) player. SetWeapon (17,200), player. SetWeapon (26,200), player. SetWeapon (31,200), player. SetWeapon (21,200);
if(player.) Team == 3) player. SetWeapon (18,200), player. SetWeapon (25,200), player. SetWeapon (32,200), player. SetWeapon (20,200);
}



or in function onScriptLoad()
{
AddClass( 1, RGB( 255, 255, 3 ),13,Vector(0,0,0), 7.5261,25,320,21,320,26,450);
AddClass( 2, RGB( 255, 255, 3 ),14,Vector(0,0,0), 7.5261,25,320,21,320,26,450);
AddClass( 3, RGB( 255, 255, 3 ),15,Vector(0,0,0), 7.5261,25,320,21,320,26,450);
AddClass( 4, RGB( 255, 255, 3 ),16,Vector(0,0,0), 7.5261,25,320,21,320,26,450);
AddClass( 5, RGB( 255, 255, 3 ),35,Vector(0,0,0), 7.5261,25,320,21,320,26,450);
AddClass( 6, RGB( 255, 255, 3 ),83,Vector(0,0,0), 7.5261,25,320,21,320,26,450);
AddClass( 7, RGB( 255, 255, 3 ),104,Vector(0,0,0), 7.5261,25,320,21,320,26,450);
AddClass( 8, RGB( 255, 255, 3 ),100,Vector(0,0,0), 7.5261,25,320,21,320,26,450);
}

AddClass(TeamID, RGB(Color ID), Skin ID, Vector (spawn coordinates), angle of the player, IDWeapon, AmmoWeapon, IDWeapon, AmmoWeapon, IDWeapon, AmmoWeapon);

colors for onScriptLoad() class are rgb

Here you can find rgb colors: [url]http://www.rapidtables.com/web/color/RGB_Color.htm[/url]



Here you can find id them weapon :  [url]http://wiki.vc-mp.org/wiki/Weapons[/url]


Here you can find id them skins:  [url]http://wiki.vc-mp.org/wiki/Skins[/url]


well I hope and to help you with this
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: KAKAN on Mar 29, 2016, 01:33 PM
Next time use the [ code][ /code] option :P
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: Coolkid on Mar 29, 2016, 02:34 PM
Quote from: KAKAN on Mar 29, 2016, 01:33 PMNext time use the [ code][ /code] option :P
next time use modify instead of bumping you can mosify your previous post
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: KAKAN on Mar 29, 2016, 03:50 PM
Quote from: Coolkid on Mar 29, 2016, 02:34 PM
Quote from: KAKAN on Mar 29, 2016, 01:33 PMNext time use the [ code][ /code] option :P
next time use modify instead of bumping you can mosify your previous post
Ah... I see, thanks for notifying about a bump that's no more than 16 hours
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: Luis_Labarca on Mar 29, 2016, 11:52 PM
Quote from: KAKAN on Mar 29, 2016, 01:33 PMNext time use the [ code][ /code] option :P

already use it do not use it because I did not know how to put it
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: SomeoneRandom on Apr 02, 2016, 10:02 AM
thanks for info. i need a host plz
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: KAKAN on Apr 02, 2016, 01:43 PM
Quote from: Jagrit Vats on Apr 02, 2016, 10:02 AMthanks for info. i need a host plz
Sure. http://forum.vc-mp.org/?board=25.0
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: SomeoneRandom on Apr 02, 2016, 03:18 PM
i have posted application for drake's host. any other?
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: KAKAN on Apr 03, 2016, 05:14 AM
Quote from: Jagrit Vats on Apr 02, 2016, 03:18 PMi have posted application for drake's host. any other?

000webhost
5jelly
3jelly
hostinger
There are many more hosts for free. But many of 'em are not for applications.
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: jayant on Apr 03, 2016, 05:23 AM
@KAKAN - I think he is asking for server host [ VPS ]
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: KAKAN on Apr 03, 2016, 05:29 AM
Quote from: jayant on Apr 03, 2016, 05:23 AM@KAKAN - I think he is asking for server host [ VPS ]
I know. I just wanted him to realize that he should be more specific on what he wants so that we can help me without being confused.
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: SomeoneRandom on Apr 03, 2016, 07:55 AM
I want vcmp server host
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: . on Apr 03, 2016, 08:19 AM
Quote from: Jagrit Vats on Apr 03, 2016, 07:55 AMI want vcmp server host

Then go buy one.

@Thijn please lock this topic because it wen't to a whole different discussion here which seems quite pointless.
Title: Re: How to set different weapons for different teams in my vcmp server? (i am new)
Post by: Thijn on Apr 03, 2016, 08:48 AM
Locked.