• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[SGO] = Shotgun Only. My style

Skilled Illusionist
Joined
Dec 24, 2011
Messages
356
Reaction score
35
So here it is.

Find on ZCharacterItem
case MMCIP_PRIMARY:
case MMCIP_SECONDARY:
{
if (pDesc->m_nType.Ref() != MMIT_RANGE)
{
return false;
}
}
break;
Replace to :
case MMCIP_PRIMARY:
case MMCIP_SECONDARY:
{
if (pDesc->m_nType.Ref() != MMIT_RANGE)
{
return false;
}
if (strstr(strlwr((char*)ZGetGameClient()->GetStageName()), "[SGO]"))
{
MMatchWeaponType pItem = pDesc->m_nWeaponType.Ref();
if (pItem > 0 && pItem < 18)
{
if (pItem != MWT_SHOTGUN)
return false;
}
}
}
break;

Tell if there any problem for.

Thanks to Lib
Like button accept too here.
 
Skilled Illusionist
Joined
Dec 24, 2011
Messages
356
Reaction score
35
Only shotgun can give damage.
if you use Sawed Shotgun add sawed shotgun too.
 
Newbie Spellweaver
Joined
Aug 6, 2014
Messages
61
Reaction score
0
hmm u mean [sgo] = can't use rifle or sniper or something?
 
Last edited:
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
.CPP o .H ?

in ZCharacterItem read please...



So here it is.

Find on ZCharacterItem

Replace to :


Tell if there any problem for.

Thanks to Lib
Like button accept too here.

PHP:
	case MMCIP_PRIMARY:
	case MMCIP_SECONDARY:
	{
		if (pDesc->m_nType.Ref() != MMIT_RANGE)
		{
			return false;
		}
		if ((strstr(ZGetGameClient()->GetStageName(), "[sgo]")) || (strstr(ZGetGameClient()->GetStageName(), "[SGO]")))
		{
			MMatchWeaponType pItem = pDesc->m_nWeaponType.Ref();
			if (pItem > 0 && pItem < 18)
			{
				if (pItem != MWT_SHOTGUN)
					return false;
			}
		}
	}
	break;
 
Back
Top