Some errors needed help with
#13

If you want the name of the weapon:
pawn Код:
// Under #include <a_samp>
// and above main()
new aWeaponNames[][32] = {
    {"Unarmed (Fist)"}, // 0
    {"Brass Knuckles"}, // 1
    {"Golf Club"}, // 2
    {"Night Stick"}, // 3
    {"Knife"}, // 4
    {"Baseball Bat"}, // 5
    {"Shovel"}, // 6
    {"Pool Cue"}, // 7
    {"Katana"}, // 8
    {"Chainsaw"}, // 9
    {"Purple Dildo"}, // 10
    {"Big White Vibrator"}, // 11
    {"Medium White Vibrator"}, // 12
    {"Small White Vibrator"}, // 13
    {"Flowers"}, // 14
    {"Cane"}, // 15
    {"Grenade"}, // 16
    {"Teargas"}, // 17
    {"Molotov"}, // 18
    {" "}, // 19
    {" "}, // 20
    {" "}, // 21
    {"Colt 45"}, // 22
    {"Colt 45 (Silenced)"}, // 23
    {"Desert Eagle"}, // 24
    {"Normal Shotgun"}, // 25
    {"Sawnoff Shotgun"}, // 26
    {"Combat Shotgun"}, // 27
    {"Micro Uzi (Mac 10)"}, // 28
    {"MP5"}, // 29
    {"AK47"}, // 30
    {"M4"}, // 31
    {"Tec9"}, // 32
    {"Country Rifle"}, // 33
    {"Sniper Rifle"}, // 34
    {"Rocket Launcher"}, // 35
    {"Heat-Seeking Rocket Launcher"}, // 36
    {"Flamethrower"}, // 37
    {"Minigun"}, // 38
    {"Satchel Charge"}, // 39
    {"Detonator"}, // 40
    {"Spray Can"}, // 41
    {"Fire Extinguisher"}, // 42
    {"Camera"}, // 43
    {"Night Vision Goggles"}, // 44
    {"Infrared Vision Goggles"}, // 45
    {"Parachute"}, // 46
    {"Fake Pistol"} // 47
};

// In OnPlayerDeath
new string[50];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "%s has died (%s)", playername, aWeaponNames[reason]);
SendClientMessageToAll(0x00FF32FF, string);
Try that out and get back to me.
Reply


Messages In This Thread
Some errors needed help with - by willsuckformoney - 09.07.2010, 08:16
Re: Some errors needed help with - by Hiddos - 09.07.2010, 08:23
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 08:36
Re: Some errors needed help with - by CAR - 09.07.2010, 08:37
Re: Some errors needed help with - by Hiddos - 09.07.2010, 08:45
Re: Some errors needed help with - by Miikkel - 09.07.2010, 09:08
Re: Some errors needed help with - by Grim_ - 09.07.2010, 09:10
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 09:11
Re: Some errors needed help with - by Grim_ - 09.07.2010, 09:13
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 09:17
Re: Some errors needed help with - by Grim_ - 09.07.2010, 09:18
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 09:23
Re: Some errors needed help with - by Grim_ - 09.07.2010, 09:29
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 09:41
Re: Some errors needed help with - by CAR - 09.07.2010, 10:10
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 10:39
Re: Some errors needed help with - by CAR - 09.07.2010, 11:00
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 11:05
Re: Some errors needed help with - by Betamaster - 09.07.2010, 11:09
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 11:14

Forum Jump:


Users browsing this thread: 4 Guest(s)