How to set different weapons for different teams in my vcmp server? (i am new)

Started by SomeoneRandom, Mar 28, 2016, 10:13 AM

Previous topic - Next topic

SomeoneRandom

I need to set different weapons for different teams. how to set?

KAKAN

Another thing: The max ammo seems to be 200. If you set more than that, then you're done.
oh no

Luis_Labarca

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

KAKAN

oh no

Coolkid

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

KAKAN

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
oh no

Luis_Labarca

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



SomeoneRandom


KAKAN

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.
oh no

jayant


KAKAN

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.
oh no


.

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.
.