Trunk system
#7

Put this arrary of all weapon names in your script:
pawn Код:
new aWeaponNames[][32] =
{
    {"Unarmed"}, {"BrassKnuckles"}, {"GolfClub"}, {"NightStick"}, {"Knife"}, {"BaseballBat"},
    {"Shovel"}, {"PoolCue"}, {"Katana"}, {"Chainsaw"}, {"PurpleDildo"}, {"BigWhiteVibrator"},
    {"MedWhiteVibrator"}, {"SmlWhiteVibrator"}, {"Flowers"}, {"Cane"}, {"Grenade"}, {"Teargas"},
    {"Molotov"}, {"Empty Slot 1"}, {"Empty Slot 2"}, {"Empty Slot 3"},  {"Colt45"}, {"SDPistol"},
    {"DesertEagle"}, {"Shotgun"}, {"SawnoffShotgun"}, {"Spas12"}, {"Mac10"},
    {"MP5"}, {"AK47"}, {"M4"}, {"Tec9"}, {"CountryRifle"}, {"Sniper"}, {"RPG"},
    {"HeatRPG"}, {"Flamethrower"}, {"Minigun"}, {"Satchel"}, {"Detonator"},
    {"SprayCan"}, {"Extinguisher"}, {"Camera"}, {"NVGoggles"}, {"IRGoggles"},
    {"Parachute"}, {"Fake Pistol"}
};
I'm guessing you're saving the weapon ID in this variable:
pawn Код:
iTrunk[vehicleid][tWeapon1]
Here is an example of how you can format the string:
pawn Код:
format(string, sizeof(string), "Slot 1: %s", aWeaponNames[ iTrunk[vehicleid][tWeapon1] ]);
Reply


Messages In This Thread
Trunk system - by Lajko1 - 16.02.2014, 14:30
Re: Trunk system - by Lajko1 - 16.02.2014, 20:29
Re: Trunk system - by Lajko1 - 16.02.2014, 20:31
Re: Trunk system - by Lajko1 - 16.02.2014, 21:51
Re: Trunk system - by Jimmy0wns - 16.02.2014, 21:53
Re: Trunk system - by Lajko1 - 16.02.2014, 22:04
Re: Trunk system - by JJB562 - 16.02.2014, 22:39
Re: Trunk system - by Threshold - 17.02.2014, 00:46
Re: Trunk system - by Lajko1 - 17.02.2014, 13:34
Re: Trunk system - by Lajko1 - 17.02.2014, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)