Quote from: Yankee on May 27, 2017, 06:55 PMHey it not works man,game take my cash but not give me the weapon.Anyone know basic command for this.I want players can take a weapon with cost.Quote from: Zeeshan.Bhatti on May 27, 2017, 03:22 PMYou are in wrong board nobody can help you here but next time post your request in here: http://forum.vc-mp.org/?board=37.0Code Selectif ( cmd "weapon" )
{
if ( !text ) MessagePlayer( " /weapon id", player );
else
{
local wep = GetWeaponID(text);
switch(wep)
{
case "34":
player.Weapon(0,29);
player.Cost -=50;
break;
case "28":
player.Weapon(0,7);
player.Cost -=50;
break;
case "26":
player.Weapon(0,9);
player.Cost -=50;
break;
default:
MessagePlayer( "Invalid id", player );
}
}
}
Oh thank you man you are pro.