mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[server] Implement CNetGame::GetWeaponName(...)
This commit is contained in:
@ -579,7 +579,114 @@ void CNetGame::LoadBanList()
|
||||
// TODO: CNetGame::LoadBanList W: 48EAE0 L: 80AF1A0
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
DWORD CNetGame::GetTime()
|
||||
{
|
||||
return (DWORD)RakNet::GetTime();
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
const PCHAR CNetGame::GetWeaponName(int iWeaponID)
|
||||
{
|
||||
switch(iWeaponID) {
|
||||
case WEAPON_BRASSKNUCKLE:
|
||||
return "Brass Knuckles";
|
||||
case WEAPON_GOLFCLUB:
|
||||
return "Golf Club";
|
||||
case WEAPON_NITESTICK:
|
||||
return "Nite Stick";
|
||||
case WEAPON_KNIFE:
|
||||
return "Knife";
|
||||
case WEAPON_BAT:
|
||||
return "Baseball Bat";
|
||||
case WEAPON_SHOVEL:
|
||||
return "Shovel";
|
||||
case WEAPON_POOLSTICK:
|
||||
return "Pool Cue";
|
||||
case WEAPON_KATANA:
|
||||
return "Katana";
|
||||
case WEAPON_CHAINSAW:
|
||||
return "Chainsaw";
|
||||
case WEAPON_DILDO:
|
||||
return "Dildo";
|
||||
case WEAPON_DILDO2:
|
||||
return "Dildo";
|
||||
case WEAPON_VIBRATOR:
|
||||
return "Vibrator";
|
||||
case WEAPON_VIBRATOR2:
|
||||
return "Vibrator";
|
||||
case WEAPON_FLOWER:
|
||||
return "Flowers";
|
||||
case WEAPON_CANE:
|
||||
return "Cane";
|
||||
case WEAPON_GRENADE:
|
||||
return "Grenade";
|
||||
case WEAPON_TEARGAS:
|
||||
return "Teargas";
|
||||
case WEAPON_MOLTOV:
|
||||
return "Molotov Cocktail";
|
||||
case WEAPON_COLT45:
|
||||
return "Colt 45";
|
||||
case WEAPON_SILENCED:
|
||||
return "Silenced Pistol";
|
||||
case WEAPON_DEAGLE:
|
||||
return "Desert Eagle";
|
||||
case WEAPON_SHOTGUN:
|
||||
return "Shotgun";
|
||||
case WEAPON_SAWEDOFF:
|
||||
return "Sawn-off Shotgun";
|
||||
case WEAPON_SHOTGSPA: // wtf?
|
||||
return "Combat Shotgun";
|
||||
case WEAPON_UZI:
|
||||
return "UZI";
|
||||
case WEAPON_MP5:
|
||||
return "MP5";
|
||||
case WEAPON_AK47:
|
||||
return "AK47";
|
||||
case WEAPON_M4:
|
||||
return "M4";
|
||||
case WEAPON_TEC9:
|
||||
return "TEC9";
|
||||
case WEAPON_RIFLE:
|
||||
return "Rifle";
|
||||
case WEAPON_SNIPER:
|
||||
return "Sniper Rifle";
|
||||
case WEAPON_ROCKETLAUNCHER:
|
||||
return "Rocket Launcher";
|
||||
case WEAPON_HEATSEEKER:
|
||||
return "Heat Seaker";
|
||||
case WEAPON_FLAMETHROWER:
|
||||
return "Flamethrower";
|
||||
case WEAPON_MINIGUN:
|
||||
return "Minigun";
|
||||
case WEAPON_SATCHEL:
|
||||
return "Satchel Explosives";
|
||||
case WEAPON_BOMB:
|
||||
return "Bomb";
|
||||
case WEAPON_SPRAYCAN:
|
||||
return "Spray Can";
|
||||
case WEAPON_FIREEXTINGUISHER:
|
||||
return "Fire Extinguisher";
|
||||
case WEAPON_CAMERA:
|
||||
return "Camera";
|
||||
case WEAPON_NIGHTVISION:
|
||||
return "Night Vision";
|
||||
case WEAPON_INFRARED:
|
||||
return "Thermal Goggles";
|
||||
case WEAPON_PARACHUTE:
|
||||
return "Parachute";
|
||||
case WEAPON_VEHICLE:
|
||||
return "Vehicle";
|
||||
case WEAPON_DROWN:
|
||||
return "Drowned";
|
||||
case WEAPON_COLLISION:
|
||||
return "Splat";
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user