int PlayerCmd_GiveWeapon_t[2] = { 0x00175370, 0x00724C38 };
typedef void (__cdecl * PLAYERCMD_GIVEWEAPON)( int entref );
PLAYERCMD_GIVEWEAPON PlayerCmd_GiveWeapon = (PLAYERCMD_GIVEWEAPON)&PlayerCmd_GiveWeapon_t;
void giveWeapon( int clientNum, char * weapon, int camoNum = 0, bool akimbo = 0 )
{
Scr_AddInt( akimbo );
Scr_AddInt( camoNum );
Scr_AddString( weapon );
Scr_SetNumParam(3);
PlayerCmd_GiveWeapon( clientNum << 16 );
}
Scr_ClearOutParams();
Copyright © 2026, NextGenUpdate.
All Rights Reserved.