SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 13/01/2020, 12:34 PM   #431
ivanp00
Little Clucker
 
Join Date: Feb 2014
Posts: 21
Reputation: 0
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by f0Re3t View Post
Only if your write client-server plugin
I need this
ivanp00 is offline   Reply With Quote
Old 14/01/2020, 03:43 AM   #432
f0Re3t
Little Clucker
 
Join Date: Aug 2015
Posts: 44
Reputation: 7
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by ivanp00 View Post
I need this
In the public you are unlikely to find this. Just write it yourself. Here, once I wrote with one person under the project
Attached Images
File Type: jpg MJYILAwqids.jpg (379.2 KB, 49 views)
f0Re3t is offline   Reply With Quote
Old 12/03/2020, 05:32 PM   #433
f0Re3t
Little Clucker
 
Join Date: Aug 2015
Posts: 44
Reputation: 7
Default Re: SampSharp - Write gamemodes in .NET

how do I intercept a callback from another plugin?
f0Re3t is offline   Reply With Quote
Old 14/03/2020, 12:48 PM   #434
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,052
Reputation: 205
Default Re: SampSharp - Write gamemodes in .NET

Put this in your game mode class:

[Callback]
public bool SomeCustomCallback(int firstArgument, int secondArgument) // rename method and replace arguments to match the callback you want to use
{
return true;
}
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 14/03/2020, 01:23 PM   #435
f0Re3t
Little Clucker
 
Join Date: Aug 2015
Posts: 44
Reputation: 7
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by ikkentim View Post
Put this in your game mode class:

[Callback]
public bool SomeCustomCallback(int firstArgument, int secondArgument) // rename method and replace arguments to match the callback you want to use
{
return true;
}
I tried it this way, but it didnít help in intercepting the callbacks of the Pawn.Raknet plugin

[Callback]
public bool OnIncomingPacket(int playerid, int packetid, int bs)
{
return true;
}

perhaps the BitStream type is not integer?
f0Re3t is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Write on the map hejsan123 Scripting Help 3 23/09/2012 08:35 AM
How to write something in a VAR? Ihsan_Cingisiz Help Archive 4 29/05/2010 07:24 PM
How Do You Write This? sidhu123 Everything and Nothing 2 12/09/2009 04:05 AM
Write something in big and to the top TimBuk.Ekh Help Archive 3 18/04/2009 07:19 PM


All times are GMT. The time now is 05:11 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.