Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(StrEqual(class, "weapon_pistol"))
- {
- hasdualclient = GetEntProp(eGiverWeapon, Prop_Send, "m_hasDualWeapons");
- clientclip = GetEntProp(eGiverWeapon, Prop_Send, "m_iClip1");
- AcceptEntityInput(eGiverWeapon, "Kill");
- eGiverWeapon = CreateEntityByName("weapon_pistol");
- DispatchSpawn(eGiverWeapon);
- }
- GetEntityClassname(eRecipientWeapon, class, sizeof(class));
- if(StrEqual(class, "weapon_pistol"))
- {
- hasdualtarget = GetEntProp(eRecipientWeapon, Prop_Send, "m_hasDualWeapons");
- targetclip = GetEntProp(eRecipientWeapon, Prop_Send, "m_iClip1");
- AcceptEntityInput(eRecipientWeapon, "Kill");
- eRecipientWeapon = CreateEntityByName("weapon_pistol");
- DispatchSpawn(eRecipientWeapon);
- }
- CallThrowWeapon(giver, eGiverWeapon, recipient);
- if (swap)CallThrowWeapon(recipient, eRecipientWeapon, giver);
- CallOnWeaponDropped(giver, eGiverWeapon, recipient);
- if (swap)CallOnWeaponDropped(recipient, eRecipientWeapon, giver);
- GetEntityClassname(eGiverWeapon, class, sizeof(class));
- if(StrEqual(class, "weapon_pistol"))
- {
- SetEntProp(eGiverWeapon, Prop_Send, "m_hasDualWeapons", hasdualclient);
- EquipPlayerWeapon(recipient, eGiverWeapon);
- SetEntProp(eGiverWeapon, Prop_Send, "m_iClip1", clientclip);
- }
- GetEntityClassname(eRecipientWeapon, class, sizeof(class));
- if(StrEqual(class, "weapon_pistol"))
- {
- SetEntProp(eRecipientWeapon, Prop_Send, "m_hasDualWeapons", hasdualtarget);
- EquipPlayerWeapon(giver, eRecipientWeapon);
- SetEntProp(eRecipientWeapon, Prop_Send, "m_iClip1", targetclip);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement