06.05.2011, 18:16
pawn Код:
enum WeaponName
{
Brass_Knuckles = 1, Golf_Club = 2, Nite_Stick = 3,
Knife = 4, Baseball_Bat = 5, Shovel = 6,
Pool_Cue = 7, Katana = 8, Chainsaw = 9,
Purple_Dildo = 10, Small_White_Vibrator = 11, Large_White_Vibrator = 12,
Silver_Vibrator = 13, Flowers = 14, Cane = 15,
Grenade = 16, Tear_Gas = 17, Molotov_Cocktail = 18,
Pistol_9mm = 22, Silenced_9mm = 23, Desert_Eagle = 24,
Shotgun = 25, Sawnoff_Shotgun = 26, Combat_Shotgun = 27,
Uzi = 28, MP5 = 29, AK_47 = 30,
M4 = 31, Tec9 = 32, Country_Rifle = 33,
Sniper_Rifle = 34, Rocket_Launcher = 35, HS_Rocket_Launcher = 36,
Flamethrower = 37, Minigun = 38
};
new WeaponsPolice[5][3][2] = {
{ { M4, 700 }, { Combat_Shotgun, 400 }, { Desert_Eagle, 500 } }, // Army [Line: 49]
{ { MP5, 500 }, { AK_47, 600 }, { Sniper_Rifle, 200 } }, // CIA [Line: 50]
{ { MP5, 500 }, { Desert_Eagle, 200 }, { Shotgun, 300 } }, // FBI [Line: 51]
{ { Uzi, 400 }, { Combat_Shotgun, 500 }, { Sniper_Rifle, 300 } }, // SWAT [Line: 52]
{ { Pistol_9mm, 500 }, { Shotgun, 300 }, { Tec9, 300 } } // Police [Line: 53]
};
public OnPlayerSpawn(playerid){
for(new i = 0; 3 > i; i++)
GivePlayerWeapon(playerid, WeaponsPolice[0][i][0], WeaponsPolice[0][i][1]);
}
return 1;
}