Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: sherwin688 on March 20, 2014, 12:30:08 pm

Title: How to make seprate weapons for player
Post by: sherwin688 on March 20, 2014, 12:30:08 pm
How to make separate weapons for player. Example: I choose biker skin in my server the default weps are shotgun,tec and m4 how to make it stubby,m60.m4.uzi
Title: Re: How to make seprate weapons for player
Post by: mrockxkingbutt on March 20, 2014, 12:41:44 pm
onplayer spawn

if(classid == 1) {
SetPlayerWeapon,playerid,wep,ammo,
SetPlayerWeapon,playerid,wep,ammo,
SetPlayerWeapon,playerid,wep,ammo,
SetPlayerWeapon,playerid,wep,ammo,



If You Added

AddPlayerClassEx(1.etc);


it will work like this!
Title: Re: How to make seprate weapons for player
Post by: sherwin688 on March 21, 2014, 11:53:31 am
Thnx
Title: Re: How to make seprate weapons for player
Post by: NeskWriter on March 21, 2014, 11:13:06 pm
A code mrockx posted is definitely bullshit. Use AddPlayerClassEx in public function "OnGameModeInit". Here are parameters of the function:
(teamid, modelid, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)