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

CS 1.6 Sample Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ajaxx
Senior Member
Join Date: Oct 2009
Old 07-16-2013 , 16:38   CS 1.6 Sample Plugin
Reply With Quote #1

I want to port my plugin to Counter-Strike 1.6. I’ve downloaded the old-school Half-Life 1 SDK from http://hg.alliedmods.net/hl2sdks. I don’t see a sample or stub plugin anywhere. Is there a sample plugin I can use as a base for my project like in the CSS and CSGO SDKs?
Ajaxx is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-16-2013 , 17:05   Re: CS 1.6 Sample Plugin
Reply With Quote #2

CS 1.6 isn't a Source game.

You'll need MetaMod and AMXModX as opposed to MetaMod: Source and SourceMod.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-16-2013 at 17:07.
Powerlord is offline
Ajaxx
Senior Member
Join Date: Oct 2009
Old 07-19-2013 , 15:45   Re: CS 1.6 Sample Plugin
Reply With Quote #3

Thanks for the reply. I’m aware 1.6 is not a Source game, I thought people in here would have experience writing plugins with both SDKs (original and Source). I myself only have experience with Metamod:Source. As such I was looking for the sample plugin I’ve become familiar with in the MM:S SDKs (I apologize, seems like a lot of questions about the sample plugins lately). I found what I was looking for, kind of, in the original Metamod SDK with the metamod solution (thanks for the tip). I want to write a Metamod plugin not AMX. What is not obvious to me is how to hook events and add listeners. I want to action thinks like server_spawn, player_death, bomb_exploded, and player_disconnect but I’m lost. Where do I put my code for

Code:
SH_ADD_HOOK_STATICFUNC(IServerGameDLL, GameFrame, server, Hook_GameFrame, true);
SH_ADD_HOOK_STATICFUNC(IServerGameClients, ClientPutInServer, gameclients, Hook_ClientPutInServer, true);
SH_ADD_HOOK_STATICFUNC(IServerGameClients, ClientDisconnect, gameclients, Hook_ClientDisconnect, true);
and

Code:
	gameevents->AddListener(this, "player_death", true);
	gameevents->AddListener(this, "round_start", true);
	gameevents->AddListener(this, "server_spawn", true);
	gameevents->AddListener(this, "player_say", true);
	gameevents->AddListener(this, "bomb_planted", true);
	gameevents->AddListener(this, "bomb_defused", true);
	gameevents->AddListener(this, "bomb_exploded", true);
?
Ajaxx is offline
Ajaxx
Senior Member
Join Date: Oct 2009
Old 07-29-2013 , 09:24   Re: CS 1.6 Sample Plugin
Reply With Quote #4

So I want to write a MetaMod plugin without AMX Mod. Where’s the Metamod forum?
Ajaxx is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-29-2013 , 10:52   Re: CS 1.6 Sample Plugin
Reply With Quote #5

Quote:
Originally Posted by Ajaxx View Post
So I want to write a MetaMod plugin without AMX Mod. Where’s the Metamod forum?
This would probably be the closest one here, https://forums.alliedmods.net/forumdisplay.php?f=9
psychonic is offline
Afonia
Member
Join Date: Jun 2014
Old 06-05-2014 , 15:13   Re: CS 1.6 Sample Plugin
Reply With Quote #6

Hi guys, need your help, who can convert from scripters plugin Conter Strike 1.6 plug in the new version 84 Conter Strike
Afonia is offline
Send a message via Skype™ to Afonia
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 06-05-2014 , 15:35   Re: CS 1.6 Sample Plugin
Reply With Quote #7

Quote:
Originally Posted by Afonia View Post
Hi guys, need your help, who can convert from scripters plugin Conter Strike 1.6 plug in the new version 84 Conter Strike
is that no-steam?

Last edited by WildCard65; 06-05-2014 at 15:35.
WildCard65 is offline
Afonia
Member
Join Date: Jun 2014
Old 06-06-2014 , 04:32   Re: CS 1.6 Sample Plugin
Reply With Quote #8

I need to redo the plugin version counter strike 1.6 in the AMX Mod version soursemod
Afonia is offline
Send a message via Skype™ to Afonia
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 13:27.


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