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

SomeoneRandom

  • Newbie
  • Posts: 34

KAKAN

  • Wiki Contributor
  • Posts: 3,338
oh no

Luis_Labarca

  • Guest
Re: How to set different weapons for different teams in my vcmp server? (i am new)
« Reply #2, on March 28th, 2016, 11:09 PM »Last edited on March 30th, 2016, 12:50 AM by Luis_Labarca
Code: [Select]
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

  • Wiki Contributor
  • Posts: 3,338
oh no

Coolkid

  • Full Member
  • Posts: 171

KAKAN

  • Wiki Contributor
  • Posts: 3,338
oh no

Luis_Labarca

  • Guest

SomeoneRandom

  • Newbie
  • Posts: 34

KAKAN

  • Wiki Contributor
  • Posts: 3,338
oh no

SomeoneRandom

  • Newbie
  • Posts: 34

KAKAN

  • Wiki Contributor
  • Posts: 3,338
oh no

jayant

  • Full Member
  • #MOMO-CS
  • Posts: 164

KAKAN

  • Wiki Contributor
  • Posts: 3,338
oh no

SomeoneRandom

  • Newbie
  • Posts: 34

.

  • VC:MP Beta Tester
  • .
  • Posts: 1,807
.