Raised This Month: $51 Target: $400
 12% 

[HL2DM/ANY] Magnum 357 only + Removes weapon spawns!


Post New Thread Reply   
 
Thread Tools Display Modes
Oliveboy
Member
Join Date: Feb 2010
Old 11-01-2010 , 16:09   Re: [HL2DM/ANY] Magnum 357 only + Removes weapon spawns!
Reply With Quote #11

Ok Final version released. Check first post. This deletes all the weapons from a map and from the player himself.

HAVE FUN,
Oliveboy .
Oliveboy is offline
Master53
Veteran Member
Join Date: Dec 2009
Old 11-14-2010 , 08:08   Re: [HL2DM/ANY] Magnum 357 only
Reply With Quote #12

Quote:
Originally Posted by Silvers View Post
So any project under 115 lines is too simple? Admincheats for example comes to mind? Stop bashing others work which more than often is done and given out for free. Forums these days...


Oliveboy: I don't think it can be for any game because you have this line: Offset = FindSendPropOffs("CHL2MP_Player", "m_hMyWeapons");

Thats very game specific, also some games spawn weapons on the map and they would have to be removed too! Anyway nice work for HL2DM
to be fair. its kind of an extraction from a hl2 roleplaying mod. why dont you use game offseting which would require abit more code but would work on every game if... plus the revolver is only present on hl2dm not any other mp game.
__________________
Master(d)



Master53 is offline
Master53
Veteran Member
Join Date: Dec 2009
Old 11-14-2010 , 08:51   Re: [HL2DM/ANY] Magnum 357 only + Removes weapon spawns!
Reply With Quote #13

Code:
"Games"
{
    "#default"
    {
        "#supported"
        {
            "game"        "hl2mp"
        }
        "Offsets"
        {
            "RemoveAllItems"
            {
                "windows"    "283"
                "linux"        "284"
            }
        }
    }
}
PHP Code:
new Handle:hRemoveItems INVALID_HANDLE;

//how to call the script
SDKCall(hRemoveItemsClientfalse);

//Initation:
public OnPluginStart() {
    
SdkStartup()
}

public 
SdkStartup() {
    
hGameConfig LoadGameConfigFile("(file name of the offset which to be called).gamedata");
    if(
hGameConfig != INVALID_HANDLE) {
        
StartPrepSDKCall(SDKCall_Player);
        
PrepSDKCall_SetFromConf(hGameConfigSDKConf_Virtual"RemoveAllItems");
        
PrepSDKCall_AddParameter(SDKType_BoolSDKPass_Plain);
        
hRemoveItems EndPrepSDKCall();
        if(
hRemoveItems == INVALID_HANDLESetFailState("|RP| - Failure Loading hRemoveItems Offset");
        
CloseHandle(hGameConfig);
    }

__________________
Master(d)



Master53 is offline
gtamike
Member
Join Date: Aug 2009
Location: UK
Old 11-17-2010 , 13:40   Re: [HL2DM/ANY] Magnum 357 only + Removes weapon spawns!
Reply With Quote #14

Gravity Gun only would be a good pluggin option to
__________________
gtamike is offline
Oliveboy
Member
Join Date: Feb 2010
Old 11-21-2010 , 10:16   Re: [HL2DM/ANY] Magnum 357 only + Removes weapon spawns!
Reply With Quote #15

Well hello people,

Because i'm finished with Steam and everything around it, i cannot finish this plugin. I'm taking a permanent break from the gaming community that served me for 5 years or so. If someone wants to work on this, be my guest. You can make a new thread with your own plugin like this one (based on the source code) and you don't have to mention me.

Cya and have a good one,
Oliveboy, out.
Oliveboy is offline
KarnageInk
Member
Join Date: Oct 2010
Old 11-24-2010 , 04:25   Re: [HL2DM/ANY] Magnum 357 only + Removes weapon spawns!
Reply With Quote #16

Hi

Sad to see author retiring. Does this work with l4d2?
KarnageInk is offline
Benjamin1995
SourceMod Donor
Join Date: May 2009
Location: Germany
Old 02-18-2011 , 18:09   Re: [HL2DM/ANY] Magnum 357 only + Removes weapon spawns!
Reply With Quote #17

Why do you need OnDeath you never use it.
Anyways I guess that this function is made by me in a other plugin and just got edited -.-
Code:
stock LoseWeapon(Client, bool:OnDeath = false)
{
	if(!IsClientInGame(Client)) return false;
	
	RemoveWeapons(Client);
	return true;	
}

Regards Benni.
__________________
Benjamin1995 is offline
Send a message via Skype™ to Benjamin1995
Oliveboy
Member
Join Date: Feb 2010
Old 11-17-2011 , 11:00   Re: [HL2DM/ANY] Magnum 357 only + Removes weapon spawns!
Reply With Quote #18

Approve please?
Oliveboy is offline
Oliveboy
Member
Join Date: Feb 2010
Old 11-22-2011 , 07:53   Re: [HL2DM/ANY] Magnum 357 only + Removes weapon spawns!
Reply With Quote #19

Up
Oliveboy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode