SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 13/04/2018, 10:48 PM   #191
BrunoBM23
Little Clucker
 
Join Date: Mar 2018
Posts: 15
Reputation: 20
Default Re: Pawn.RakNet

Quote:
Originally Posted by ball View Post
Here you go most of them: http://forum.sa-mp.com/showthread.php?t=649570
It is in spanish/portugese, I can't find this thread in english, although the most important info is readable.

Code:
ID_RCON_COMMAND (ID: 201)
text_length,
cmdtext
I also want to know how to get packet's data from ID_SPECTATOR_SYNC (212), but I can't find anything how to do it.
It's structure:

UINT16 - lrKey
UINT16 - udKey
UINT16 - keys
FLOAT - Position X
FLOAT - Position Y
FLOAT - Position Z

Anyway, the latest include file already has read/write functions for spectator sync packet (https://github.com/urShadow/Pawn.Rak...awn.RakNet.inc):

PHP Code:
enum PR_SpectatingSync
{
    
PR_lrKey,
    
PR_udKey,
    
PR_keys,
    
Float:PR_position[3]
};

stock BS_ReadSpectatingSync(BitStream:bsdata[PR_SpectatingSync])
{
    
BS_ReadValue(
        
bs,
        
PR_UINT16data[PR_lrKey],
        
PR_UINT16data[PR_udKey],
        
PR_UINT16data[PR_keys],
        
PR_FLOATdata[PR_position][0],
        
PR_FLOATdata[PR_position][1],
        
PR_FLOATdata[PR_position][2]
    );
}

stock BS_WriteSpectatingSync(BitStream:bsdata[PR_SpectatingSync])
{
    
BS_WriteValue(
        
bs,
        
PR_UINT16data[PR_lrKey],
        
PR_UINT16data[PR_udKey],
        
PR_UINT16data[PR_keys],
        
PR_FLOATdata[PR_position][0],
        
PR_FLOATdata[PR_position][1],
        
PR_FLOATdata[PR_position][2]
    );

BrunoBM23 is offline   Reply With Quote
Old 13/04/2018, 11:19 PM   #192
AroseKhanNiazi
High-roller
 
AroseKhanNiazi's Avatar
 
Join Date: Jan 2014
Location: Pakistan
Posts: 1,369
Reputation: 78
Default Re: Pawn.RakNet

That RCON one was just an example, how do I find this packet info on other packets or RPC.
AroseKhanNiazi is offline   Reply With Quote
Old 14/04/2018, 09:52 AM   #193
ball
Huge Clucker
 
ball's Avatar
 
Join Date: Jul 2012
Location: Poznan, Poland
Posts: 279
Reputation: 33
Default Re: Pawn.RakNet

Come on man, maybe you should try to find it yourself instead of crying here?

http://forum.sa-mp.com/showthread.php?t=599574

Quote:
Anyway, the latest include file already has read/write functions for spectator sync packet
I was hoping for more data in this packet, but anyway thanks for information, I didn't know it is in include file.
ball is offline   Reply With Quote
Old 14/04/2018, 12:09 PM   #194
Spmn
Gangsta
 
Join Date: Jun 2015
Location: Romania
Posts: 532
Reputation: 126
Default Re: Pawn.RakNet

Quote:
Originally Posted by AroseKhanNiazi View Post
That RCON one was just an example, how do I find this packet info on other packets or RPC.
Reverse SA-MP server or look into other projects(or leaks) that already did that.
Spmn is offline   Reply With Quote
Old 14/04/2018, 02:09 PM   #195
AroseKhanNiazi
High-roller
 
AroseKhanNiazi's Avatar
 
Join Date: Jan 2014
Location: Pakistan
Posts: 1,369
Reputation: 78
Default Re: Pawn.RakNet

Quote:
Originally Posted by ball View Post
Come on man, maybe you should try to find it yourself instead of crying here?

http://forum.sa-mp.com/showthread.php?t=599574
IDK how asking is crying, anyways thanks for this That's what I was looking for.

Last edited by AroseKhanNiazi; 17/04/2018 at 12:54 PM.
AroseKhanNiazi is offline   Reply With Quote
Old 20/04/2018, 06:43 PM   #196
YourShadow
Big Clucker
 
YourShadow's Avatar
 
Join Date: Apr 2016
Posts: 118
Reputation: 232
Default Re: Pawn.RakNet

Updated to 1.1.0.
  • Added PR_SpectatingSync, BS_ReadSpectatingSync, BS_WriteSpectatingSync
  • Added pawn.json
  • Fixed incompatibility with rustext plugin
YourShadow is offline   Reply With Quote
Old 06/05/2018, 01:20 PM   #197
YourShadow
Big Clucker
 
YourShadow's Avatar
 
Join Date: Apr 2016
Posts: 118
Reputation: 232
Default Re: Pawn.RakNet

Updated to 1.2.0.
  • Added native BS_GetNumberOfBitsAllocated
  • Fixed server crashing
YourShadow is offline   Reply With Quote
Old 07/05/2018, 03:32 AM   #198
mroq98
Little Clucker
 
Join Date: Dec 2013
Posts: 10
Reputation: 0
Default Re: Pawn.RakNet

Great.
Do this plugin support 0.3dl or just 0.3.7?
mroq98 is offline   Reply With Quote
Old 07/05/2018, 04:51 AM   #199
BrunoBM23
Little Clucker
 
Join Date: Mar 2018
Posts: 15
Reputation: 20
Default Re: Pawn.RakNet

Quote:
Originally Posted by mroq98 View Post
Great.
Do this plugin support 0.3dl or just 0.3.7?
Yes, it works on 0.3z and above (tested).
BrunoBM23 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
[Tutorial] Pacotes - Pawn.RakNet Jelly23 Lançamentos/Releases 32 10/02/2018 07:03 PM
[Tutorial] Handlers - Pawn.RakNet Jelly23 Tutorials 6 29/01/2018 11:46 PM
[Tutorial] Handlers - Pawn.RakNet Jelly23 Lançamentos/Releases 14 02/01/2018 11:04 PM
[Tutorial] RPC - Pawn.RakNet Jelly23 Tutorials 21 13/12/2017 09:51 PM
[Tutorial] Packets - Pawn.RakNet Jelly23 Tutorials 2 16/11/2017 05:46 PM


All times are GMT. The time now is 03:57 PM.


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