Git Product home page Git Product logo

pawn.raknet's Introduction

Pawn.RakNet

GitHub Release

Plugin for SA:MP 0.3.7 server that allows you to capture and analyze RakNet traffic

Main features

  • Capture, modify, filter incoming/outgoing packets and RPCs
  • Send your own packets and RPCs to a player
  • Emulate incoming packets and RPCs from a player

Documentation

Pawn.RakNet wiki

Official RakNet manual

Simple example

const PLAYER_SYNC = 207;

IPacket:PLAYER_SYNC(playerid, BitStream:bs)
{
  new onFootData[PR_OnFootSync];

  BS_IgnoreBits(bs, 8); // ignore packet id (uint8)
  BS_ReadOnFootSync(bs, onFootData);

  printf(
    "PLAYER_SYNC[%d]:\nlrKey %d \nudKey %d \nkeys %d \nposition %.2f %.2f %.2f \nquaternion %.2f %.2f %.2f %.2f \nhealth %d \narmour %d \nadditionalKey %d \nweaponId %d \nspecialAction %d \nvelocity %.2f %.2f %.2f \nsurfingOffsets %.2f %.2f %.2f \nsurfingVehicleId %d \nanimationId %d \nanimationFlags %d",
    playerid,
    onFootData[PR_lrKey],
    onFootData[PR_udKey],
    onFootData[PR_keys],
    onFootData[PR_position][0],
    onFootData[PR_position][1],
    onFootData[PR_position][2],
    onFootData[PR_quaternion][0],
    onFootData[PR_quaternion][1],
    onFootData[PR_quaternion][2],
    onFootData[PR_quaternion][3],
    onFootData[PR_health],
    onFootData[PR_armour],
    onFootData[PR_additionalKey],
    onFootData[PR_weaponId],
    onFootData[PR_specialAction],
    onFootData[PR_velocity][0],
    onFootData[PR_velocity][1],
    onFootData[PR_velocity][2],
    onFootData[PR_surfingOffsets][0],
    onFootData[PR_surfingOffsets][1],
    onFootData[PR_surfingOffsets][2],
    onFootData[PR_surfingVehicleId],
    onFootData[PR_animationId],
    onFootData[PR_animationFlags]
  );

  return 1;
}

pawn.raknet's People

Contributors

agraber avatar katursis avatar nexiustailer avatar nobody23 avatar southclaws avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pawn.raknet's Issues

desync key crash with more 1 player online

if only one player is connected, the code works correctly (KEY_FIRE is not reported in OnPlayerKeyStateChange, and animation is cleanly prevented from using the view tool)

But when more than 1 player online, while holding the night vision glasses, the server shuts down without logs (even with crash detect and logcore)

Is there a problem with the code?

static VarOldKey[MAX_PLAYERS]; 

IPacket:PLAYER_SYNC(playerid, BitStream:bs) 
{ 
   if(!(43 < GetPlayerWeapon(playerid) < 46)) 
       return 1; 

   new newkeys; 

   BS_IgnoreBits(bs, 40); 
   BS_ReadValue(bs, PR_UINT16, newkeys);  

        
   if(((newkeys & (KEY_FIRE)) == (KEY_FIRE)) && ((VarOldKey[playerid] & (KEY_FIRE)) != (KEY_FIRE))) 
       ClearAnimations(playerid); 

    VarOldKey[playerid]=newkeys; 
    if(newkeys & (KEY_FIRE)) 
       newkeys &= ~KEY_FIRE; 

   BS_SetReadOffset(bs, 40);   
   BS_WriteValue(bs,PR_UINT16, newkeys); 
   return 1; 
} 

the wiki exemple SetPlayerDisableKeysSync works, but I did not choose it, to use only the necessary one without extra verifications, and recet of functions

How can I call a native from another plugin? I'm getting "Script not found" error.

I need to call natives of your plugin from another plugin.
But I'm getting a runtime error: "Script not found".

Calling natives to other plugins works good, but with this one not.

I'm using sampgdk_FindNative(name) to find your natives, this works OK.
But using sampgdk_InvokeNativeArray(native, format, args) not executes it and prints "[Pawn.RakNet] BS_ReadValue: Script not found" on the console. This happens with all your natives, not only the mentioned.

I'm doing something wrong?

how?

how do you use this to create an anticheat?

Incompatibility with sampcac plugin

When loading this plugin together with another plugin - sampcac i get a crash:

[09/01/2020 16:43:00] [debug] Server crashed due to an unknown error [09/01/2020 16:43:00] [debug] Native backtrace: [09/01/2020 16:43:00] [debug] #0 f7a02180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so [09/01/2020 16:43:00] [debug] #1 f79fa064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so [09/01/2020 16:43:00] [debug] #2 f79fad64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so [09/01/2020 16:43:00] [debug] #3 f79fccdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so [09/01/2020 16:43:00] [debug] #4 f7a014d5 in ?? () from plugins/crashdetect.so [09/01/2020 16:43:00] [debug] #5 f7ee90a0 in __kernel_rt_sigreturn () from linux-gate.so.1 [09/01/2020 16:43:00] [debug] #6 f7b71fe6 in ?? () from /lib/i386-linux-gnu/libc.so.6 [09/01/2020 16:43:00] [debug] #7 095ac13c in ?? () from (Wê÷\Uê÷LÔZ LÔZ MÖZ LÔZ �ÖZ LØZ Ô©ê÷� [09/01/2020 16:43:00] [debug] #8 080af514 in ?? () from ./chill [09/01/2020 16:43:00] [debug] #9 080aa0e6 in ?? () from ./chill [09/01/2020 16:43:00] [debug] #10 f7a42e81 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6 [09/01/2020 16:43:00] [debug] Registers: [09/01/2020 16:43:00] [debug] EAX: ec83e589 EBX: f7b71fe0 ECX: 83e58955 EDX: 0806ca35 [09/01/2020 16:43:00] [debug] ESI: 095abffc EDI: 0806ca30 EBP: ff935ad8 ESP: ff935a88 [09/01/2020 16:43:00] [debug] EIP: f7b71fe6 EFLAGS: 00010283 [09/01/2020 16:43:00] [debug] Stack: [09/01/2020 16:43:00] [debug] ESP+00000000: 095ac13c f642de33 0806ca30 095acb80 [09/01/2020 16:43:00] [debug] ESP+00000020: 00000000 f7000000 00000320 00000000 [09/01/2020 16:43:00] [debug] ESP+00000040: ff935ad8 095bf940 095bbf50 00000000 [09/01/2020 16:43:00] [debug] ESP+00000060: 0000006e 00000077 0000007c ffffffbc [09/01/2020 16:43:00] [debug] ESP+00000080: 00000032 00001e61 00000020 f7c027a0 [09/01/2020 16:43:00] [debug] ESP+000000a0: f7ea8000 5c455a00 095bbdb0 f7efee20 [09/01/2020 16:43:00] [debug] ESP+000000c0: ff935b98 f7d9a648 095acb40 ff935b7b [09/01/2020 16:43:00] [debug] ESP+000000e0: 095bbf34 080d2c7f 095acb40 095acb50 [09/01/2020 16:43:00] [debug] ESP+00000100: 095bbf20 0815abd0 095a6740 095ac090 [09/01/2020 16:43:00] [debug] ESP+00000120: ff935d00 f7aa95d1 00000000 0816324e [09/01/2020 16:43:00] [debug] ESP+00000140: ff935e28 080d2b43 0815ac37 00000005 [09/01/2020 16:43:00] [debug] ESP+00000160: 00000000 095a6740 67756c70 2f736e69 [09/01/2020 16:43:00] [debug] ESP+00000180: 00000007 00000000 00000000 00000000 [09/01/2020 16:43:00] [debug] ESP+000001a0: 00000000 ff935cc0 095a4ce0 095a6720 [09/01/2020 16:43:00] [debug] ESP+000001c0: 00000007 095a66e0 ff935cb0 ff935cc0 [09/01/2020 16:43:00] [debug] ESP+000001e0: ff935cc0 f7d9a648 095a76d0 00000000 [09/01/2020 16:43:00] [debug] ESP+00000200: f7ea8000 f7de2338 095a6720 00000001 [09/01/2020 16:43:00] [debug] ESP+00000220: 095a76d0 0809fbc4 095a670c ff935cd0 [09/01/2020 16:43:00] [debug] ESP+00000240: ff935d10 095a5c40 095a6720 00000101 [09/01/2020 16:43:00] [debug] ESP+00000260: 00000000 00000000 00000000 00000000 [09/01/2020 16:43:00] [debug] ESP+00000280: 00000000 00000000 00000000 00000000 [09/01/2020 16:43:00] [debug] ESP+000002a0: 00000000 00000000 00000000 00000000 [09/01/2020 16:43:00] [debug] ESP+000002c0: 00000000 f7c027d8 000039f0 00000000 [09/01/2020 16:43:00] [debug] ESP+000002e0: 0000039e 0959f010 00000000 000039e0 [09/01/2020 16:43:00] [debug] ESP+00000300: 00000000 000000e7 00000118 00000007 [09/01/2020 16:43:00] [debug] ESP+00000320: 00000071 00000077 0000007c ffffffbc [09/01/2020 16:43:00] [debug] ESP+00000340: f7aa2e8c f7c02000 000039e0 f7c027a0 [09/01/2020 16:43:00] [debug] ESP+00000360: f7aa4c39 095a5620 00000003 00000000 [09/01/2020 16:43:00] [debug] ESP+00000380: ff935f68 f7d9ca47 000039e0 00000000 [09/01/2020 16:43:00] [debug] ESP+000003a0: ff935f68 080aa0e6 095bbf50 08159c2b [09/01/2020 16:43:00] [debug] ESP+000003c0: f7ea71b4 00000000 ff935e68 f7e403e6 [09/01/2020 16:43:00] [debug] ESP+000003e0: f7eaa9d4 010090dc 00010000 00001e61 [09/01/2020 16:43:00] [debug] Loaded modules: [09/01/2020 16:43:00] [debug] 00000000 - 00187dc3 chill [09/01/2020 16:43:00] [debug] f7ee8000 - f7ee927e linux-gate.so.1 [09/01/2020 16:43:00] [debug] f7ecb000 - f7ecdabc /lib/i386-linux-gnu/libdl.so.2 [09/01/2020 16:43:00] [debug] f7eac000 - f7eca087 /lib/i386-linux-gnu/libpthread.so.0 [09/01/2020 16:43:00] [debug] f7d26000 - f7eb6c18 /usr/lib32/libstdc++.so.6 [09/01/2020 16:43:00] [debug] f7c24000 - f7d2579c /lib/i386-linux-gnu/libm.so.6 [09/01/2020 16:43:00] [debug] f7c06000 - f7c221e4 /lib/i386-linux-gnu/libgcc_s.so.1 [09/01/2020 16:43:00] [debug] f7a2a000 - f7c0c3ab /lib/i386-linux-gnu/libc.so.6 [09/01/2020 16:43:00] [debug] f7eea000 - f7f113c4 /lib/ld-linux.so.2 [09/01/2020 16:43:00] [debug] f79e4000 - f7a26ac4 plugins/crashdetect.so [09/01/2020 16:43:00] [debug] f7ed3000 - f7ee21d4 plugins/sscanf.so [09/01/2020 16:43:00] [debug] f7653000 - f79e8eb2 plugins/mysql.so [09/01/2020 16:43:00] [debug] f762f000 - f7652d32 /root/chill/plugins/../log-core.so [09/01/2020 16:43:00] [debug] f7612000 - f7619b1c /lib/i386-linux-gnu/librt.so.1 [09/01/2020 16:43:00] [debug] f64ec000 - f64fddb8 /lib/i386-linux-gnu/libnss_files.so.2 [09/01/2020 16:43:00] [debug] f63c2000 - f64f0461 plugins/pawnraknet.so [09/01/2020 16:43:00] [debug] f6277000 - f63ca774 plugins/sampcac.so

script not found and Invalid BitStream handle

I'm using Pawn Raknet function. But log is show like below

[Pawn.RakNet] Natives::n_BS_New: script not found
[Pawn.RakNet] Natives::n_BS_WriteValue: invalid BitStream handle
[Pawn.RakNet] Natives::n_PR_SendRPC: invalid BitStream handle
[Pawn.RakNet] Natives::n_BS_Delete: script not found

how can i fix this

all plugins in server.cfg
mysql streamer sscanf pawncmd pawnraknet GPS pawn-memory cec YSF sampvoice
Pawn Raknet version 1.4.1

Thank you.

newest version cause to bug

Hi,
i use newest version "1.4.0"
my client cannot connect to server, They have request connection
but it stuck on beach screen and get kick by server for not logged in
and always get server crash by unknown issue.
i guess this plugin not incompatible with chandling plugin and other plugin that hook raknet (no problem when not use pawnraknet)

all plugin i use | crashdetect mysql pawnraknet socket streamer pawncmd sscanf Whirlpool FCNPC hash chandlingsvr

Intercept Incoming Raw Packet not working on OpenMP version

The OnIncomingRawPacket callback is not being called at all in the OpenMP version of the plugin.

My pawnraknet.cfg (I've already tried putting it in the "plugins" and "components" folders):

InterceptIncomingPacket = true
WhiteListInternalPackets = []
InterceptIncomingRPC = false
InterceptOutgoingPacket = false
InterceptOutgoingRPC = false
InterceptIncomingRawPacket = true
InterceptIncomingInternalPacket = false
InterceptOutgoingInternalPacket = false
UseCaching = false

OS: Windows 10 & Debian 10

Slow sending RPCs

When sending RPCs to ~20 players, sometimes the execution take between 50 and 100ms. It's normal?

[28/03/2021 18:45:46] 92ms Damage_UpdateTeams(219) - count: 19
[28/03/2021 18:45:51] 99ms Damage_UpdateTeams(146) - count: 23
[28/03/2021 18:45:56] 58ms Damage_UpdateTeams(265) - count: 29
[28/03/2021 18:46:12] 68ms Damage_UpdateTeams(195) - count: 32
[28/03/2021 18:46:12] 70ms Damage_UpdateTeams(258) - count: 33

Code:

stock Damage_UpdateTeams(playerid)
{
	new tick = GetTickCount(), count;
	
	PlayerLoop(i)
	{
		if(IsPlayerStreamedIn(i, playerid))
		{
			Damage_CheckTeam(playerid, i);
			count++;
		}
	}
	
	tick = GetTickCount() - tick;
	if(tick >= 50) printf("%dms Damage_UpdateTeams(%d) - count: %d", tick, playerid, count);
	return 1;
}

stock Damage_CheckTeam(playerid, id)
{
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !Damage_SameTeam(playerid, id))
	{
		SetTeamForPlayer(id, NO_TEAM, playerid);
	}
	else
	{
		SetTeamForPlayer(id, DAMAGE_TEAM, playerid);
	}
	return 1;
}

stock SetTeamForPlayer(playerid, team, forplayerid)
{
	if(!IsPlayerConnected(forplayerid) || !IsPlayerConnected(playerid)) return 1;
	
	new BitStream:bs = BS_New();
	
	BS_WriteValue(
		bs,
		PR_UINT16, playerid,
		PR_UINT8, team
	);
	
	PR_SendRPC(bs, forplayerid, 69, PR_LOW_PRIORITY, PR_RELIABLE_ORDERED);
	
	BS_Delete(bs);
	return 1;
}

Weapon State Inaccuracy

Hi there,

I'm using AIM_SYNC and detecting the weapon state to set an ammo variable to 0 when they no longer have any bullets, ie - when weapon state is WEAPONSTATE_NO_BULLETS.

For some reason it is reporting no bullets when it shouldn't.

Yes I use 'GetPlayerSyncWeapon' which is from YSF to get the current weapon. The reason I use that is because there is no weaponid for the PR_AimSync callback. Could it be GetPlayerSyncWeapon is picking up the new weapon instead of the old weapon that ran out of bullets?

I use this function:

new sync = GetPlayerSyncWeapon(playerid); if(aimData[PR_weaponState] == WEAPONSTATE_NO_BULLETS && sync != 0 && sync != 255) { new slot = GetWeaponSlot(sync); if(slot != 0 && slot != 1 && slot != 10 && slot != 11 && slot != 255) { WeaponInformation[playerid][slot][WeaponAmmo] = 0; if(UserInfo[playerid][DebugWeapon] == 10) { SendFormatMessage(playerid,COLOR_RED,"WEAPONSTATE_NO_BULLETS - ws hide - %d ", sync); } SetPlayerAmmo(playerid, GetPlayerSyncWeapon(playerid), 0); PlayerAmmo[playerid][slot] = 0; } }

Works with 0.3DL

Hi, hello, I have a problem with Pawn.RakNet. My server version is sa-mp 0.3dl, when I try to start the server I get a reply that "Plugin does not conform to architecture". Does the 0.3.7 plugin work with 0.3DL? Unfortunately, I have not found a solution to my problem on the web.

Help with timestamp or...

Hi, on Balkan is often situation to script go down for player...
It mean that for example textdraw CLOCK on server stopped working for him or timestamp for every new message showing the same time, he can't se any map or players, all are 'AFK', but he can write commands, and see chat text... And when he go relog everything is ok.

So i thinking to make some check is script down for player and kick him, i think that is possible with Pawn.RakNet plugin, maybe with 'ID_TIMESTAMP' ? Is anyone have some idea or example ?

AutoAiming with Gamepad

IsPlayerUsingAutoAiming returns false with Gamepad enabled (Gamepad have Auto Aiming)

Makes return true

RPC ClientJoin - 25

Опечатка в - UINT32 uiClientChallengeResponse
Правильно - bool uiClientChallengeResponse

Help

Can someone give me an example of how to use this to ban teleport hackers for example?

CRASH in version 1.4.1

Hello,

I was using version 1.3.0 of the plugin, and I have never had a server crash problem for years. However, when I upgraded to version 1.4.1, crashes started happening randomly, once every 1-3 days.

server_log.txt:

[21/02/2021 03:32:47] [debug] Server crashed due to an unknown error
[21/02/2021 03:32:47] [debug] Native backtrace:
[21/02/2021 03:32:47] [debug] #0 f7a4de8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[21/02/2021 03:32:47] [debug] #1 f7a46bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[21/02/2021 03:32:47] [debug] #2 f7a47dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[21/02/2021 03:32:47] [debug] #3 f7a48226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[21/02/2021 03:32:47] [debug] #4 f7a4dadc in ?? () from plugins/crashdetect.so
[21/02/2021 03:32:47] [debug] #5 f7f26090 in __kernel_rt_sigreturn () from linux-gate.so.1
[21/02/2021 03:32:47] [debug] #6 f7f26069 in __kernel_vsyscall () from linux-gate.so.1
[21/02/2021 03:32:47] [debug] #7 f7aa0382 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[21/02/2021 03:32:47] [debug] #8 f7a8a2b6 in abort () from /lib/i386-linux-gnu/libc.so.6
[21/02/2021 03:32:47] [debug] #9 f7de1ab7 in ?? () from /lib/i386-linux-gnu/libstdc++.so.6
[21/02/2021 03:32:47] [debug] #10 f7de9094 in ?? () from /lib/i386-linux-gnu/libstdc++.so.6
[21/02/2021 03:32:47] [debug] #11 f7de90fd in ?? () from /lib/i386-linux-gnu/libstdc++.so.6
[21/02/2021 03:32:47] [debug] #12 f7de93fc in ?? () from /lib/i386-linux-gnu/libstdc++.so.6
[21/02/2021 03:32:47] [debug] #13 f6330371 in _ZN9Functions9RakServer9NewPacketEtRKN6RakNet9BitStreamE () from plugins/pawnraknet.so
[21/02/2021 03:32:47] [debug] #14 f633e344 in _ZN5Hooks13InternalHooks18RakServer__ReceiveEPv () from plugins/pawnraknet.so
[21/02/2021 03:32:47] [debug] #15 080aed6d in ?? () from ./samp03svr
[21/02/2021 03:32:47] [debug] #16 080aef32 in ?? () from ./samp03svr
[21/02/2021 03:32:47] [debug] #17 080aa16a in ?? () from ./samp03svr
[21/02/2021 03:32:47] [debug] #18 f7a8bb41 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
[21/02/2021 03:32:47] [debug] #19 0804b4e1 in ?? () from ./samp03svr

RPC запрос к транспорту

Всем првиет, имею систему номерных знаков с asi и raknet, посредством ранета отправляется рпц на установку гос. номера игроку, но нет ли функции которая привязывает этот номер к транспорту? Или только отправка рпц игрокам в зоне стрима авто?

Some questions.

I want to start a new project which will have a large player-base, and my goal is to make some anti-trolls / anti-exploits based on this library / plugin. It is possible for this plugin to consume a lot of resources at let's say at 1000 players online and to lower my tickrate? Let's assume that I only make some if-statements in the script based on the quaternions / positions and in that statement I am using some maths functions like atan or others.

вопрос

здрасти, я пробывал включить OnIncomingInternalPacket с помаши файла pawnraknet.cfg
WhiteListInternalPackets = true ну он что-то не включается, что не так делаю?

Segmentation fault with some plugins

Hello, when I try to use certain plugins together with Pawn.Raknet the server does not start and crashes with the Segmentation fault error on Linux. If I remove Pawn.Raknet, the server starts normally.

The plugin is "sampvoice", but this also happened when I tried to use the sampcac plugin.

Both plugins seem to hook the "Raknet", and causes this error.


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R3, (C)2005-2019 SA-MP Team

[10/12/2020 09:13:38] 
[10/12/2020 09:13:38] Server Plugins
[10/12/2020 09:13:38] --------------
[10/12/2020 09:13:38]  Loading plugin: crashdetect.so
[10/12/2020 09:13:38]   CrashDetect v4.15.1 is OK.
[10/12/2020 09:13:38]   Loaded.
[10/12/2020 09:13:38]  Loading plugin: streamer.so
[10/12/2020 09:13:38] 

*** Streamer Plugin v2.9.4 by Incognito loaded ***

[10/12/2020 09:13:38]   Loaded.
[10/12/2020 09:13:38]  Loading plugin: sscanf.so
[10/12/2020 09:13:38] 

[10/12/2020 09:13:38]  ===============================

[10/12/2020 09:13:38]       sscanf plugin loaded.     

[10/12/2020 09:13:38]          Version:  2.8.3        

[10/12/2020 09:13:38]   (c) 2018 Alex "Y_Less" Cole  

[10/12/2020 09:13:38]  ===============================

[10/12/2020 09:13:38]   Loaded.
[10/12/2020 09:13:38]  Loading plugin: mysql.so
[10/12/2020 09:13:38]  >> plugin.mysql: R41-4 successfully loaded.
[10/12/2020 09:13:38]   Loaded.
[10/12/2020 09:13:38]  Loading plugin: sampvoice.so
[10/12/2020 09:13:38] [sv:dbg:network:init] : module initializing...
[10/12/2020 09:13:38] [dbg:raknet:init] : module initializing...
[10/12/2020 09:13:38] [dbg:raknet:init] : module initialized
[10/12/2020 09:13:38] [sv:dbg:network:init] : module initialized
[10/12/2020 09:13:38] [sv:dbg:main:Load] : creating 1 work threads...
[10/12/2020 09:13:38]  -------------------------------------------    
[10/12/2020 09:13:38]    ___                __   __    _              
[10/12/2020 09:13:38]   / __| __ _ _ __  _ _\ \ / /__ (_) __ ___    
[10/12/2020 09:13:38]   \__ \/ _` | '  \| '_ \   / _ \| |/ _/ -_)
[10/12/2020 09:13:38]   |___/\__,_|_|_|_| .__/\_/\___/|_|\__\___|
[10/12/2020 09:13:38]                   |_|                           
[10/12/2020 09:13:38]  -------------------------------------------    
[10/12/2020 09:13:38]            SampVoice by MOR loaded              
[10/12/2020 09:13:38]  -------------------------------------------    
[10/12/2020 09:13:38]   Loaded.
[10/12/2020 09:13:38]  Loading plugin: pawnraknet.so
[10/12/2020 09:13:38] Pawn.RakNet plugin v1.3.0 by urShadow has been loaded
[10/12/2020 09:13:38]   Loaded.
[10/12/2020 09:13:38]  Loading plugin: filemanager.so
[10/12/2020 09:13:38] ******************
[10/12/2020 09:13:38] ** FILE MANAGER **
[10/12/2020 09:13:38] **    Loaded    **
[10/12/2020 09:13:38] ** Version 1.5 **
[10/12/2020 09:13:38] ******************
[10/12/2020 09:13:38]   Loaded.
[10/12/2020 09:13:38]  Loaded 7 plugins.

[10/12/2020 09:13:38] [debug] Server crashed due to an unknown error
[10/12/2020 09:13:38] [debug] Native backtrace:
[10/12/2020 09:13:38] [debug] #0 f7a1ae8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[10/12/2020 09:13:38] [debug] #1 f7a13bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[10/12/2020 09:13:38] [debug] #2 f7a14dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[10/12/2020 09:13:38] [debug] #3 f7a15226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[10/12/2020 09:13:38] [debug] #4 f7a1aadc in ?? () from plugins/crashdetect.so
[10/12/2020 09:13:38] [debug] #5 f7ef3090 in __kernel_rt_sigreturn () from linux-gate.so.1
[10/12/2020 09:13:38] [debug] #6 f7ad7d4c in ?? () from /lib/i386-linux-gnu/libc.so.6
[10/12/2020 09:13:38] [debug] #7 f5f857a9 in _ZN5Hooks13InternalHooks21GetRakServerInterfaceEv () from plugins/pawnraknet.so
[10/12/2020 09:13:38] [debug] #8 080af544 in ?? () from ./samp03voip
[10/12/2020 09:13:38] [debug] #9 080aa116 in ?? () from ./samp03voip
[10/12/2020 09:13:38] [debug] #10 f7a58b41 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
[10/12/2020 09:13:38] [debug] #11 0804b4e1 in ?? () from ./samp03voip

Question about OPacket

Здравствуйте! Вопрос про разбор исходящих OnfootSync пакетов, а именно: кому отправляется пакет, мы можем определить из аргумента коллбэка, а как определить, какого игрока синхронизирует этот пакет?

pawnraknet.cfg issue

Configuration (pawnraknet.cfg)

InterceptIncomingPacket (true)
InterceptIncomingRPC (true)
InterceptOutcomingPacket (true)
InterceptOutcomingRPC (true)
InterceptIncomingRawPacket (true)
UseCaching (false)

I've noticed an issue with this config file, especially when altering then UseCaching field.

Changing this to true, crashes the server apon the first player connecting.

server freeze

Hey. pawn.raknet freezes the server and then it is not possible to enter it here is the server logs:

[12:01:29] [Pawn.RakNet] n_BS_ReadValue: invalid type of value [12:01:29] [Pawn.RakNet] n_BS_ReadValue: invalid type of value [12:01:29] [Pawn.RakNet] n_BS_WriteValue: invalid type of value [12:01:29] [Pawn.RakNet] n_BS_ReadValue: invalid type of value [12:01:29] [Pawn.RakNet] n_BS_ReadValue: invalid type of value [12:01:29] [Pawn.RakNet] n_BS_WriteValue: invalid type of value [12:01:29] [Pawn.RakNet] n_BS_ReadValue: invalid type of value [12:01:52] [connection] 188.113.37.234:61897 requests connection cookie. [12:01:54] [connection] 188.253.232.231:33917 requests connection cookie. [12:01:56] [connection] 178.122.212.82:54222 requests connection cookie. [12:02:04] [connection] 176.62.91.227:41913 requests connection cookie. [12:02:16] [connection] 82.140.227.93:63151 requests connection cookie. [12:02:17] [connection] 87.117.48.195:5333 requests connection cookie. [12:02:27] Kicking 178.122.212.82 because they didn't logon to the game.

OnOutcomingPacket doesn't get called all the time

I was trying to manipulate and get the "uiChallenge" values, but I noticed that OnOutcomingPacket doesn't get called when just starting the connection, and the initial connection packets just get ignored.

Tested on Windows 10, SA-MP 0.3.7-R2-1:

example script:

#include <a_samp>
#include <core>
#include <float>
#include <Pawn.Raknet>

#pragma tabsize 0

main()
{
	print("\n----------------------------------");
	print("  Bare Script\n");
	print("----------------------------------\n");
}

public OnPlayerConnect(playerid)
{
	GameTextForPlayer(playerid,"~w~SA-MP: ~r~Bare Script",5000,5);
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	new idx;
	new cmd[256];
	
	cmd = strtok(cmdtext, idx);

	if(strcmp(cmd, "/yadayada", true) == 0) {
    	return 1;
	}

	return 0;
}

public OnPlayerSpawn(playerid)
{
	SetPlayerInterior(playerid,0);
	TogglePlayerClock(playerid,0);
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
   	return 1;
}

SetupPlayerForClassSelection(playerid)
{
 	SetPlayerInterior(playerid,14);
	SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
	SetPlayerFacingAngle(playerid, 270.0);
	SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
	SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}

public OnPlayerRequestClass(playerid, classid)
{
	SetupPlayerForClassSelection(playerid);
	return 1;
}

public OnGameModeInit()
{
	SetGameModeText("Bare Script");
	ShowPlayerMarkers(1);
	ShowNameTags(1);
	AllowAdminTeleport(1);

	AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);

	return 1;
}

strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}

public OnOutcomingPacket(playerid, packetid, BitStream:bs)
{
	printf("packet = %d", packetid);
	return 1;
}

outcome:

----------------------------------
  Bare Script

----------------------------------

Number of vehicle models: 0
[connection] 127.0.0.1:56013 requests connection cookie.
[connection] incoming connection: 127.0.0.1:56013 id: 0
[connection] 127.0.0.1:58778 requests connection cookie.
[connection] incoming connection: 127.0.0.1:58778 id: 0
[join] Calisto_Metaxas has joined the server (0:127.0.0.1)
packet = 208

Packet 34 is missing!

I get errors after using pawn.raknet plugin

Hello, I get these errors::

`[22:12:46] [Error] Function not registered: PR_SendPacket

[22:12:46] [Error] Function not registered: BS_Delete

[22:12:46] [Error] Function not registered: PR_SendRPC

[22:12:46] [Error] Function not registered: BS_New

[22:12:46] [Error] Function not registered: BS_SetWriteOffset

[22:12:46] [Error] Function not registered: BS_IgnoreBits

[22:12:46] [Error] Function not registered: PR_RegHandler

[22:12:46] [Error] Function not registered: PR_Init

[22:12:46] [Error] Function not registered: BS_WriteValue

[22:12:46] [Error] Function not registered: BS_ReadValue`

I use latest pawn.raknet

Insane flood in server_log.txt

Hello, if you try to access array index out of bounds in pawn.cmd command it will make a tremendous flood in server_log.txt.

To reproduce it just access an array index out of bounds in pawn.cmd.

pawn.raknet incompatibility with sampvoice

I noticed that when connecting my server using Pawn.RakNet with sampvoice it generated the following errors:

[04:53:13] Server crashed due to an unknown error
[04:53:13] Native backtrace:
[04:53:13] #0 f73d5f7f in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so
[04:53:13] #1 f73ce81d in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so
[04:53:13] #2 f73cee48 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so
[04:53:13] #3 f73d05dc in _ZN11CrashDetect7OnCrashERKN2os7ContextE () in plugins/crashdetect.so
[04:53:13] #4 f73d579f in ?? () in plugins/crashdetect.so
[04:53:13] #5 f77d5cb0 in __kernel_rt_sigreturn () in linux-gate.so.1
[04:53:13] #6 f752a944 in ?? () in /lib/i386-linux-gnu/libc.so.6
[04:53:13] #7 f716ba8b in _ZN5Hooks13InternalHooks21GetRakServerInterfaceEv () in plugins/pawnraknet.so
[04:53:13] #8 f6fe1878 in _ZN6RakNet25GetRakServerInterfaceHookEv () in plugins/sampvoice.so
[04:53:13] #9 080af514 in ?? () in ./samp03svr
[04:53:13] #10 080aa0e6 in ?? () in ./samp03svr
[04:53:13] #11 f7419286 in __libc_start_main () in /lib/i386-linux-gnu/libc.so.6
[04:53:13] #12 0804b4e1 in ?? () in ./samp03svr
[04:53:13] Registers:
[04:53:13] EAX: 08d2d590 EBX: 83e58955 ECX: 00000005 EDX: 0806ca30
[04:53:13] ESI: 08d398a4 EDI: 0806ca30 EBP: 00000000 ESP: ffca71c8
[04:53:13] EIP: f752a944 EFLAGS: 00210202
[04:53:13] Stack:
[04:53:13] ESP+00000000: 08d39904 f716ba8b 0806ca30 08d2d590
[04:53:13] ESP+00000020: 0806ca30 f6fe1878 f77a2000 00000320
[04:53:13] ESP+00000040: f6fe158d 08d76b50 08d73168 00000000
[04:53:13] ESP+00000060: 00000020 00000000 00000000 00000000
[04:53:13] ESP+00000080: 00000096 00001e61 00000000 00000000
[04:53:13] ESP+000000a0: 00000000 00000000 00000000 00000000
[04:53:13] ESP+000000c0: 00000000 00000000 00000000 00000000
[04:53:13] ESP+000000e0: 00000000 00000000 00000000 00000000
[04:53:13] ESP+00000100: 00000000 00000000 00000000 00000000
[04:53:13] ESP+00000120: 00000000 00000000 00000000 00000000
[04:53:13] ESP+00000140: ffca7568 080d2b43 0815ac37 00000009
[04:53:13] ESP+00000160: 00000000 08d2e4b0 67756c70 2f736e69
[04:53:13] ESP+00000180: 6f732e72 00000000 00000000 00000000
[04:53:13] ESP+000001a0: 00000000 ffca7400 08d2bb78 08d2e490
[04:53:13] ESP+000001c0: 00000007 08d2e460 ffca73f0 ffca7400
[04:53:13] ESP+000001e0: ffca7400 f769c348 08d2e430 00000000
[04:53:13] ESP+00000200: f77a2000 f76e3248 08d2e490 00000001
[04:53:13] ESP+00000220: 08d2e430 0809fbc4 08d2e484 ffca7410
[04:53:13] ESP+00000240: ffca7450 08d2c910 08d2e490 00000101
[04:53:13] ESP+00000260: 00000000 00000000 00000000 00000000
[04:53:13] ESP+00000280: 00000000 00000000 00000000 00000000
[04:53:13] ESP+000002a0: 00000000 00000000 00000000 00000000
[04:53:13] ESP+000002c0: 00000000 f75b5780 00000000 08d72740
[04:53:13] ESP+000002e0: f75b57ac f7562d3c 00000000 00000000
[04:53:13] ESP+00000300: f75b5780 f7470d31 f75b57b0 000039e8
[04:53:13] ESP+00000320: 00000071 000039e0 000039f8 0000073d
[04:53:13] ESP+00000340: 00000003 00000071 00000000 00000077
[04:53:13] ESP+00000360: f7470bf9 f75b5780 f75b5000 000039e0
[04:53:13] ESP+00000380: 00000002 f769e7a7 000039e0 00000000
[04:53:13] ESP+000003a0: ffca76a8 080aa0e6 08d73168 08159c2b
[04:53:13] ESP+000003c0: f77a11d0 00000000 ffca75ac f773dbd6
[04:53:13] ESP+000003e0: f76b237b 01004994 01010000 00001e61
[04:53:13] Loaded modules:
[04:53:13] 00000000 - 00187dc3 samp03svr
[04:53:13] f77d5000 - f77d5e2e linux-gate.so.1
[04:53:13] f77c3000 - f77c59c4 /lib/i386-linux-gnu/libdl.so.2
[04:53:13] f77a6000 - f77c175b /lib/i386-linux-gnu/libpthread.so.0
[04:53:13] f762c000 - f77afbb3 /usr/lib32/libstdc++.so.6
[04:53:13] f75d7000 - f762b120 /lib/i386-linux-gnu/libm.so.6
[04:53:13] f75b9000 - f75d5354 /lib/i386-linux-gnu/libgcc_s.so.1
[04:53:13] f7401000 - f75bf73b /lib/i386-linux-gnu/libc.so.6
[04:53:13] f77d7000 - f77fb06c /lib/ld-linux.so.2
[04:53:13] f73b6000 - f73fe3d4 plugins/crashdetect.so
[04:53:13] f72f0000 - f73b5740 plugins/streamer.so
[04:53:13] f72e7000 - f72ee47c /lib/i386-linux-gnu/librt.so.1
[04:53:13] f7230000 - f72e7cdf plugins/SKY.so
[04:53:13] f70fb000 - f72347d8 plugins/pawnraknet.so
[04:53:13] f6f4c000 - f71054d5 plugins/sampvoice.so
[04:53:13] f64fc000 - f6513834 plugins/sscanf.so
[04:53:13] f616b000 - f6500eb2 plugins/mysql.so
[04:53:13] f6147000 - f616ad32 /root/samp01/plugins/../log-core.so
[04:53:13] f5132000 - f51430d0 /lib/i386-linux-gnu/libnss_files.so.2
[04:53:13] f77cd000 - f77d0484 plugins/mapandreas.so
[04:53:13] f4b93000 - f50228a6 plugins/discord-connector.so
[04:53:13] f497e000 - f4b9e348 /root/samp01/plugins/../log-core2.so
[04:53:13] f5122000 - f51268ec /lib/i386-linux-gnu/libnss_dns.so.2
[04:53:13] f510a000 - f5121120 /lib/i386-linux-gnu/libresolv.so.2

As the project remains unresponsive, is it possible for you to resolve this failure?

I have a question

it is possible to add more packets to this function WhiteListInternalPackets
exemple WhiteListInternalPackets = [12,41,200,207]

Server crashing on XP

Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team

[09:55:46] filterscripts = ""  (string)
[09:55:46] 
[09:55:46] Server Plugins
[09:55:46] --------------
[09:55:46]  Loading plugin: ./Important/crashdetect.dll
[09:55:46]   CrashDetect v4.15.1 is OK.
[09:55:46]   Loaded.
[09:55:46]  Loading plugin: ./Util/RakNetManager.dll
[09:55:46] [RNM] Loading...
[09:55:46]   Loaded.
[09:55:46]  Loading plugin: ./Important/pawncmd.dll
[09:55:46] Pawn.CMD plugin v3.1.2 by urShadow loaded
[09:55:46]   Loaded.
[09:55:46]  Loaded 3 plugins.

[09:55:46] [RNM] Addresses found
[09:55:46] [RNM] Initialized. Version: 2.0.0. Author: urShadow
[09:55:46] 
[09:55:46] Filterscripts
[09:55:46] ---------------
[09:55:46]   Loaded 0 filterscripts.

[09:55:46] [debug] Server crashed due to an unknown error
[09:55:47] [debug] Native backtrace:
[09:55:47] [debug] #0 00c61dd2 in ?? () from plugins\Util\RakNetManager.dll
[09:55:47] [debug] #1 00c66ebe in ?? () from plugins\Util\RakNetManager.dll
[09:55:47] [debug] #2 00469a75 in ?? () from samp-server.exe
[09:55:47] [debug] #3 65646f6d in ?? () from samp-server.exe

Server crashes on 0.3.7 R1

Server.cfg

echo Executing Server Config...
lanmode 1
rcon_password /*removed*/
maxplayers 10
port 7777
hostname TEST
gamemode0 bare
filterscripts
announce 0
query 1
chatlogging 1
weburl none
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 400.0
stream_rate 1000
maxnpc 10
logtimeformat [%H:%M:%S]
logqueries 0
plugins ./Important/crashdetect.dll ./Util/RakNetManager.dll ./Important/pawncmd.dll

Running on Windows XP SP3

EDIT: This also happens in Pawn.CMD, Already tried loading them separately (even without crashdetect). Same results

bug RPC

    new BitStream:b = BS_New();
BS_WriteValue(b, PR_UINT8, vehicleid, PR_FLOAT, vx, PR_FLOAT, vy, PR_FLOAT, vz);
BS_RPC(b, playerid, 91, PR_HIGH_PRIORITY, PR_RELIABLE);
BS_Delete(b);
    SetVehicleVelocity = 91 rpcid))
    not working

SendBulletData() ?

Hello, is possible to make a SendBulletData function using this plugin?

I was trying to do it by myself but I'm not sure if Im doing it well..

Here's what I have... (incomplete, of course, I was trying to do it following the YSF plugin by Kurta99...)

stock SendBulletData(target_id, Float:x,Float:y,Float:z, weaponid)
{


  BS_WriteValue(bs,
                    RNM_INT16, target_id,
                    RNM_CFLOAT, x,
					RNM_CFLOAT, y,
					RNM_CFLOAT, z,
					RNM_UINT8, weaponid);

  new BitStream:bs = BS_New(), RPC_BULLET = 206;

  BS_WriteValue(bs, RNM_UINT8, ID_CONNECTION_LOST);

  BS_Send(bs, player_id);
  BS_Send(bs, -1, PacketPriority:priority = HIGH_PRIORITY, PacketReliability:reliability = RELIABLE_ORDERED);

  BS_Delete(bs);
  //BS_Send(BitStream:bs, player_id, PacketPriority:priority = HIGH_PRIORITY, PacketReliability:reliability = RELIABLE_ORDERED);
  //CSAMPFunctions::Send(&bs, HIGH_PRIORITY, RELIABLE_ORDERED, 0, CSAMPFunctions::GetPlayerIDFromIndex(forplayerid), false);
}

GetPacketId not found

503299 [18/04/2020 21:17:22] Loaded.
503300 [18/04/2020 21:17:22] Loading plugin: SKY.so
503301 [18/04/2020 21:17:22] Loaded.
503302 [18/04/2020 21:17:22] Loading plugin: pawnraknet.so
503303 [18/04/2020 21:17:22] [Pawn.RakNet] Load: GetPacketId not found
503304 [18/04/2020 21:17:22] Failed.
503305 [18/04/2020 21:17:22] Loaded 8 plugins.

Hello, I am kinda on the run and in a hurry, I haven't tried anything to fix it. Do you know what the solution is?

Gamemode breaking

Greetings,

Using 1.5.0 right now, and my console throws me an error saying "(...) conflicting versions (1.5.0) and include (1.5.1) (...)".
That error causes the gamemode not to load at all, however my filterscript works just fine.

Removing the include from the gamemode fixes the issue and allows my gamemode to use raknet functions/callbacks.

Dont know if intended or a bug, but it seems like it uses the include frim the filterscript instead.

Cya.

Can't join the server while using ORPC/IRPC

It's a bit strange, but when I'm trying to use ORPC/IRPC callback, I can't spawn.
All I have in the chat is "Connected. Joining the game." And nothing else. No "Connected to servername"

My gamemode is pretty simple:

#include "../vendor/samp_basic/a_samp.inc"
#include "../vendor/Pawn.Raknet.inc"

main()
{

}
public OnOutcomingRPC(playerid, rpcid, BitStream:bs)
{
	printf("Player_ID: %d, RPC: %d", playerid, rpcid);
}
public OnPlayerConnect(playerid)
{
	printf("CONNECTED %d", playerid);
}

OnOutcomingPacket works well,

The version of the plugin is 1.2.0.
The plugin by itself doesn't affect on the ability to join, the problem appears only if add ORPC/IRPC to the mode.
The pawnraknet.cfg is default.

Server log:

SA-MP Dedicated Server

v0.3.7-R2, (C)2005-2015 SA-MP Team

[20:31:40] filterscripts = "" (string)
[20:31:40]
[20:31:40] Server Plugins
[20:31:40] --------------
[20:31:40] Loading plugin: pawnraknet
[20:31:40] Pawn.RakNet plugin v1.2.0 by urShadow loaded
[20:31:40] Loaded.
[20:31:40] Loaded 1 plugins.

[20:31:40]
[20:31:40] Ban list
[20:31:40] --------
[20:31:40] Loaded: samp.ban
[20:31:40]
[20:31:40]
[20:31:40] Filterscripts
[20:31:40] ---------------
[20:31:40] Loaded 0 filterscripts.

[20:31:40] Number of vehicle models: 0
[20:32:02] [connection] 127.0.0.1:44486 requests connection cookie.
[20:32:03] [connection] incoming connection: 127.0.0.1:44486 id: 0
[20:32:03] [join] Test_Player has joined the server (0:127.0.0.1)
[20:32:03] Player_ID: 0, RPC: 60
[20:32:03] CONNECTED 0
[20:32:03] Player_ID: 0, RPC: 74
[20:32:03] Player_ID: 0, RPC: 139
[20:32:10] Player_ID: 0, RPC: 60
[20:32:40] Player_ID: 0, RPC: 60

Server crashing on player connect

Same as #35
I can see the server, but as soon as I connect, the server crashes.
There is NOTHING in the log at the moment of the crash (Not even the 'incoming connection' message).
I simply removed the plugin in server.cfg and in the script and everything worked fine instantly.

I will have to make more tests when I will have a couple of hours to debug this I will try to see what other includes/plugins might be interfering.

content of serverlog.txt :

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[2020-07-18 09:40:19] 
[2020-07-18 09:40:19] Server Plugins
[2020-07-18 09:40:19] --------------
[2020-07-18 09:40:19]  Loading plugin: pawnraknet
[2020-07-18 09:40:19] [Pawn.RakNet] 

    | Pawn.RakNet 1.4.1 | 2016 - 2020
    |--------------------------------
    | Author and maintainer: urShadow


    | Compiled: Jun 18 2020 at 14:19:11
    |--------------------------------------------------------------
    | Forum thread: https://forum.sa-mp.com/showthread.php?t=640306
    |--------------------------------------------------------------
    | Repository: https://github.com/urShadow/Pawn.RakNet
    |--------------------------------------------------------------
    | Wiki: https://github.com/urShadow/Pawn.RakNet/wiki

[2020-07-18 09:40:19]   Loaded.
[2020-07-18 09:40:19]  Loading plugin: crashdetect
[2020-07-18 09:40:19]   CrashDetect plugin 4.19
[2020-07-18 09:40:19]   Loaded.
[2020-07-18 09:40:19]  Loading plugin: mysql
[2020-07-18 09:40:19]  >> plugin.mysql: R39-6 successfully loaded.
[2020-07-18 09:40:19]   Loaded.
[2020-07-18 09:40:19]  Loading plugin: streamer
[2020-07-18 09:40:19] 

*** Streamer Plugin v2.9.3 by Incognito loaded ***

[2020-07-18 09:40:19]   Loaded.
[2020-07-18 09:40:19]  Loading plugin: FileFunctions
[2020-07-18 09:40:19]   Loaded.
[2020-07-18 09:40:19]  Loading plugin: FCNPC
[2020-07-18 09:40:19] 
[2020-07-18 09:40:19] -------------------------------------------------
[2020-07-18 09:40:19]      FCNPC - Fully Controllable NPC v1.8.2
[2020-07-18 09:40:19]          Windows SA-MP 0.3.7 R2
[2020-07-18 09:40:19]           Jan  8 2018 at 01:14:48
[2020-07-18 09:40:19] 
[2020-07-18 09:40:19]   Author:       OrMisicL (2013 - 2015)
[2020-07-18 09:40:19]   Continued by: ziggi (2016 - present)
[2020-07-18 09:40:19]   Contributors: kurta999, Neutralneu
[2020-07-18 09:40:19] -------------------------------------------------
[2020-07-18 09:40:20] 
[2020-07-18 09:40:20] Loading...
[2020-07-18 09:40:20]   Loaded.
[2020-07-18 09:40:20]  Loading plugin: PathFinder
[2020-07-18 09:40:20] =========================================
[2020-07-18 09:40:20] PathFinder Plugin 1.0 MT
[2020-07-18 09:40:20]          by Pamdex
[2020-07-18 09:40:20] 
[2020-07-18 09:40:20] Using MapAndreas Plugin 1.2.1
[2020-07-18 09:40:20] Waiting for Init...
[2020-07-18 09:40:20] =========================================
[2020-07-18 09:40:20]   Loaded.
[2020-07-18 09:40:20]  Loading plugin: MapAndreas
[2020-07-18 09:40:20]   Loaded.
[2020-07-18 09:40:20]  Loading plugin: SKY
[2020-07-18 09:40:20]   Loaded.
[2020-07-18 09:40:20]  Loading plugin: YSF
[2020-07-18 09:40:20] ARRAY_ConsoleCommands: 4e43d8
[2020-07-18 09:40:20] 

[2020-07-18 09:40:20]  ===============================

[2020-07-18 09:40:20]         YSF - kurta999's version R19 loaded

[2020-07-18 09:40:20]    (c) 2008 Alex "Y_Less" Cole - (c) 2010 - 2016 kurta999

[2020-07-18 09:40:20]     Server version: 0.3.7 R2-1

[2020-07-18 09:40:20]     Operating System: Windows

[2020-07-18 09:40:20]     Built on: Mar 11 2017 at 10:32:34

[2020-07-18 09:40:20]  ===============================

[2020-07-18 09:40:20]   Loaded.
[2020-07-18 09:40:20]  Loading plugin: sscanf
[2020-07-18 09:40:20] 

[2020-07-18 09:40:20]  ===============================

[2020-07-18 09:40:20]       sscanf plugin loaded.     

[2020-07-18 09:40:20]          Version:  2.8.2        

[2020-07-18 09:40:20]    (c) 2012 Alex "Y_Less" Cole  

[2020-07-18 09:40:20]  ===============================

[2020-07-18 09:40:20]   Loaded.
[2020-07-18 09:40:20]  Loaded 11 plugins.

[2020-07-18 09:40:20] 
[2020-07-18 09:40:20] Ban list
[2020-07-18 09:40:20] --------
[2020-07-18 09:40:20]  Loaded: samp.ban
[2020-07-18 09:40:20] 
[2020-07-18 09:40:20] 
[2020-07-18 09:40:20] Filterscripts
[2020-07-18 09:40:20] ---------------
[2020-07-18 09:40:20]   Loading filterscript 'antiddos.amx'...
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  ======================================= 
[2020-07-18 09:40:20]  |                                     | 
[2020-07-18 09:40:20]  |        YSI version 4.00.0001        | 
[2020-07-18 09:40:20]  |        By Alex "Y_Less" Cole        | 
[2020-07-18 09:40:20]  |                                     | 
[2020-07-18 09:40:20]  ======================================= 
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20] [TESTING]: SERVER_LOG_FIRSTCHAR:22;
[2020-07-18 09:40:20]     Loaded!
[2020-07-18 09:40:20]   Loading filterscript 'fac_test.amx'...
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  ======================================= 
[2020-07-18 09:40:20]  |                                     | 
[2020-07-18 09:40:20]  |        YSI version 4.00.0001        | 
[2020-07-18 09:40:20]  |        By Alex "Y_Less" Cole        | 
[2020-07-18 09:40:20]  |                                     | 
[2020-07-18 09:40:20]  ======================================= 
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]    -black screens initialization...
[2020-07-18 09:40:20]       -players variables
[2020-07-18 09:40:20]    -black screens initialization completed.
[2020-07-18 09:40:20] -Loading Testing Faction...
[2020-07-18 09:40:20] [MYSQL]: Connection to `saarp` succesful!
[2020-07-18 09:40:20]   -Loading Objects...
[2020-07-18 09:40:20]   -Loading Pickups...
[2020-07-18 09:40:20] -Testing Faction loaded correctly...
[2020-07-18 09:40:20]   Loading filterscript 'vehicles.amx'...
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  ======================================= 
[2020-07-18 09:40:20]  |                                     | 
[2020-07-18 09:40:20]  |        YSI version 4.00.0001        | 
[2020-07-18 09:40:20]  |        By Alex "Y_Less" Cole        | 
[2020-07-18 09:40:20]  |                                     | 
[2020-07-18 09:40:20]  ======================================= 
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]    -black screens initialization...
[2020-07-18 09:40:20]       -players variables
[2020-07-18 09:40:20]    -black screens initialization completed.
[2020-07-18 09:40:20] 
-----------------------------------------
[2020-07-18 09:40:20] Stefan/Kevin974 - Speedometer | rt-2 - Fuel/Engine system
[2020-07-18 09:40:20] -----------------------------------------

[2020-07-18 09:40:20] [VEHICLES]: Setting vehicle Interior positions
[2020-07-18 09:40:20] [VEHICLES]: Setting vehicle Interior external doors positions
[2020-07-18 09:40:20] [VEHICLES]: SA Driving Assoc
[2020-07-18 09:40:20] [VEHICLES]: Spawning cars from database
[2020-07-18 09:40:20]   Loading filterscript 'doors.amx'...
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  ======================================= 
[2020-07-18 09:40:20]  |                                     | 
[2020-07-18 09:40:20]  |        YSI version 4.00.0001        | 
[2020-07-18 09:40:20]  |        By Alex "Y_Less" Cole        | 
[2020-07-18 09:40:20]  |                                     | 
[2020-07-18 09:40:20]  ======================================= 
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]    -black screens initialization...
[2020-07-18 09:40:20]       -players variables
[2020-07-18 09:40:20]    -black screens initialization completed.
[2020-07-18 09:40:20] Loading City Planning faction and adresses...
[2020-07-18 09:40:20]    -Connecting to database
[2020-07-18 09:40:20]     -Acquiring vehicles coords
[2020-07-18 09:40:20]     -Initializing doors vars
[2020-07-18 09:40:20]     -Other variables and timers
[2020-07-18 09:40:20]   Loading filterscript 'public.amx'...
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  
[2020-07-18 09:40:20]  ======================================= 
[2020-07-18 09:40:20]  |                                     | 
[2020-07-18 09:40:20]  |        YSI version 4.00.0001        | 
[2020-07-18 09:40:20]  |        By Alex "Y_Less" Cole        | 
[2020-07-18 09:40:20]  |                                     | 
[2020-07-18 09:40:20]  ======================================= 
[2020-07-18 09:40:20]  
[2020-07-18 09:40:21]    -black screens initialization...
[2020-07-18 09:40:21]       -players variables
[2020-07-18 09:40:21]    -black screens initialization completed.
[2020-07-18 09:40:21] # # # # # # # # # # # # # # # # # # # # # #
[2020-07-18 09:40:21] # # # # The city have a PT systems. # # # #
[2020-07-18 09:40:21] # # # # # # # # # # # # # # # # # # # # # #
[2020-07-18 09:40:21] # # Initializing "PT" System
[2020-07-18 09:40:21] # # Initializing other plugins
[2020-07-18 09:40:21] # # # Initializing FCNPC
[2020-07-18 09:40:21] # # # Initializing SAPT System
[2020-07-18 09:40:21] # # # Loading SAPT Routes
[2020-07-18 09:40:21]   Loading filterscript 'testing.amx'...
[2020-07-18 09:40:21]   Loaded 6 filterscripts.

[2020-07-18 09:40:22]   Filterscript '../scriptfiles/callbackfix.amx' loaded.
[2020-07-18 09:40:22]  
[2020-07-18 09:40:22]  
[2020-07-18 09:40:22]  
[2020-07-18 09:40:22]  ======================================= 
[2020-07-18 09:40:22]  |                                     | 
[2020-07-18 09:40:22]  |        YSI version 4.00.0001        | 
[2020-07-18 09:40:22]  |        By Alex "Y_Less" Cole        | 
[2020-07-18 09:40:22]  |                                     | 
[2020-07-18 09:40:22]  ======================================= 
[2020-07-18 09:40:22]  
[2020-07-18 09:40:25]    -AC(new) initialization...
[2020-07-18 09:40:25]       -players variables
[2020-07-18 09:40:25]       -vehicles variables
[2020-07-18 09:40:25]    -AC(new) initialization completed.
[2020-07-18 09:40:25]    -black screens initialization...
[2020-07-18 09:40:25]       -players variables
[2020-07-18 09:40:25]    -black screens initialization completed.
[2020-07-18 09:40:25]    -inventories initialization...
[2020-07-18 09:40:25]       -general variables
[2020-07-18 09:40:25]       -players variables
[2020-07-18 09:40:25]    -inventories initialization completed.
[2020-07-18 09:40:26] -Logged Off Players Variables initializations...
[2020-07-18 09:40:26]    -melee interactions initialization...
[2020-07-18 09:40:26]       -players variables
[2020-07-18 09:40:26]       -all players variables
[2020-07-18 09:40:26]    -melee interactions initialization completed.
[2020-07-18 09:40:26]    -Mailboxs initializations...
[2020-07-18 09:40:26]   -SASD faction initializing
[2020-07-18 09:40:26]     -Pickup(s)
[2020-07-18 09:40:26]     -Setting routes
[2020-07-18 09:40:26]   -SAPO faction initializing
[2020-07-18 09:40:26]     -Pickup(s)
[2020-07-18 09:40:26]     -Setting routes
[2020-07-18 09:40:26]   -SATEL faction initializing
[2020-07-18 09:40:26]     -Pickup(s)
[2020-07-18 09:40:26]     -Setting routes
[2020-07-18 09:40:26]   -SPRU faction initializing
[2020-07-18 09:40:26]     -Pickup(s)
[2020-07-18 09:40:26]     -Setting routes
[2020-07-18 09:40:26]    -Missions initializations...
[2020-07-18 09:40:26]       -Initializing player status.
[2020-07-18 09:40:26]       -Initializing timer(s).
[2020-07-18 09:40:26]       -Initializing text strings.
[2020-07-18 09:40:26]    -Gang Wars initializations...
[2020-07-18 09:40:26] [GANGWAR]: -Initializing Gang War system.
[2020-07-18 09:40:26] [GANGWAR]:   -Initializing Areas.
[2020-07-18 09:40:26] [GANGWAR]:   -Initializing Gangs Skins.
[2020-07-18 09:40:26] [GANGWAR]:   -Initializing Gangs Cribs.
[2020-07-18 09:40:26] [GANGWAR]:   -Initializing Gangs Pickups.
[2020-07-18 09:40:26] [GANGWAR]:   -Initializing Territories Wars Timer.
[2020-07-18 09:40:26] [GANGWAR]:   -Initializing Other Gangs Vars.
[2020-07-18 09:40:26]   -Interactive Menus initializations...
[2020-07-18 09:40:26]    -Shops initializations...
[2020-07-18 09:40:26]     -Sending query
[2020-07-18 09:40:26]    -tutorial initialization...
[2020-07-18 09:40:26]       -players variables
[2020-07-18 09:40:26]       -office pickup
[2020-07-18 09:40:26]       -slides variables
[2020-07-18 09:40:26]    -Transport system initializations...
[2020-07-18 09:40:26]        -Impex Automatic Sales initialization;
[2020-07-18 09:40:26]          -stockid is 53 after load
[2020-07-18 09:40:26]        -creating container objects;
[2020-07-18 09:40:26]        -creating pickup;
[2020-07-18 09:40:26]        -creating container variables;
[2020-07-18 09:40:26]        -spawning cargos;
[2020-07-18 09:40:26]    -digestion initialization...
[2020-07-18 09:40:26]       -players variables
[2020-07-18 09:40:26]    -digestion initialization completed.
[2020-07-18 09:40:26]    -machines initialization...
[2020-07-18 09:40:26]       -players variables
[2020-07-18 09:40:26]       -machines variables
[2020-07-18 09:40:26]       -machines recipes variables
[2020-07-18 09:40:26]    -machine initialization completed.
[2020-07-18 09:40:26]    -fire initialization...
[2020-07-18 09:40:26]       -vehicles variables
[2020-07-18 09:40:26]       -previous fires
[2020-07-18 09:40:26]    -fire initialization completed.
[2020-07-18 09:40:26]    -underground races initialization...
[2020-07-18 09:40:26]       -general variables
[2020-07-18 09:40:26] [TESTING]: urace_racevar_reinit() called.
[2020-07-18 09:40:26]       -racers variables
[2020-07-18 09:40:26]       -players variables
[2020-07-18 09:40:26]    -underground races initialization completed.
[2020-07-18 09:40:26]    -fishing initialization...
[2020-07-18 09:40:26]       -catch types
[2020-07-18 09:40:26]       -players variables
[2020-07-18 09:40:26]    -fishing initialization completed.
[2020-07-18 09:40:26]    -elevators initialization...
[2020-07-18 09:40:26]       -loading elevators...
[2020-07-18 09:40:26]    -elevators initialization completed.
[2020-07-18 09:40:26]    -Scripted Casinos initializations...
[2020-07-18 09:40:26] 
----------------------------------
[2020-07-18 09:40:26]  
[2020-07-18 09:40:26]  STREAMER_OBJECT_SD = 1133903872
[2020-07-18 09:40:26]  STREAMER_OBJECT_DD = 0
[2020-07-18 09:40:26]  NB OF OBJ LOADED:  5126/8000

[2020-07-18 09:40:26] ----------------------------------

[2020-07-18 09:40:26]    -removed buildings initialization...
[2020-07-18 09:40:26]       -vars initializing...
[2020-07-18 09:40:26]       -building listing...
[2020-07-18 09:40:26]       -testing configuration:
[2020-07-18 09:40:26]          -679 building removed;
[2020-07-18 09:40:26]          -modelid:923 is removed 3 times:
[2020-07-18 09:40:26]          -modelid:1216 is removed 14 times:
[2020-07-18 09:40:26]          -modelid:'traffic light'(1283) is removed 239 times:
[2020-07-18 09:40:26]          -modelid:1284 is removed 17 times:
[2020-07-18 09:40:26]          -modelid:1315 is removed 62 times:
[2020-07-18 09:40:26]          -modelid:1350 is removed 20 times:
[2020-07-18 09:40:26]          -modelid:1373 is removed 8 times:
[2020-07-18 09:40:26]          -modelid:1374 is removed 8 times:
[2020-07-18 09:40:26]          -modelid:'interior boxes'(1421) is removed 2 times:
[2020-07-18 09:40:26]          -modelid:'interior boxes'(1431) is removed 2 times:
[2020-07-18 09:40:26]          -modelid:1440 is removed 2 times:
[2020-07-18 09:40:26]          -modelid:1441 is removed 2 times:
[2020-07-18 09:40:26]          -modelid:2647 is removed 7 times:
[2020-07-18 09:40:26]          -modelid:2663 is removed 6 times:
[2020-07-18 09:40:26]          -modelid:2672 is removed 4 times:
[2020-07-18 09:40:26]          -modelid:2673 is removed 2 times:
[2020-07-18 09:40:26]          -modelid:2674 is removed 2 times:
[2020-07-18 09:40:26]          -modelid:2675 is removed 3 times:
[2020-07-18 09:40:26]          -modelid:2676 is removed 3 times:
[2020-07-18 09:40:26]          -modelid:2677 is removed 3 times:
[2020-07-18 09:40:26]          -modelid:3377 is removed 8 times:
[2020-07-18 09:40:26]          -modelid:3378 is removed 8 times:
[2020-07-18 09:40:26]          -modelid:3474 is removed 2 times:
[2020-07-18 09:40:26]          -modelid:3516 is removed 4 times:
[2020-07-18 09:40:26]          -modelid:3567 is removed 5 times:
[2020-07-18 09:40:26]          -modelid:3569 is removed 5 times:
[2020-07-18 09:40:26]          -modelid:'cargos'(3574) is removed 32 times:
[2020-07-18 09:40:26]          -modelid:'abandonned car'(3593) is removed 11 times:
[2020-07-18 09:40:26]          -modelid:'abandonned car'(3594) is removed 10 times:
[2020-07-18 09:40:26]          -modelid:3621 is removed 5 times:
[2020-07-18 09:40:26]          -modelid:3625 is removed 7 times:
[2020-07-18 09:40:26]          -modelid:3664 is removed 4 times:
[2020-07-18 09:40:26]          -modelid:3665 is removed 3 times:
[2020-07-18 09:40:26]          -modelid:3688 is removed 5 times:
[2020-07-18 09:40:26]          -modelid:3744 is removed 32 times:
[2020-07-18 09:40:26]          -modelid:3747 is removed 5 times:
[2020-07-18 09:40:26]          -modelid:3769 is removed 6 times:
[2020-07-18 09:40:26]          -modelid:3780 is removed 3 times:
[2020-07-18 09:40:26]    -Administration initializations...
[2020-07-18 09:40:26]    -SAARP_fac_cityp_tcmd initializations...
[2020-07-18 09:40:26]  
[2020-07-18 09:40:26] --------------------------------------
[2020-07-18 09:40:26]  Anticheat Nex-AC loaded!
[2020-07-18 09:40:26]  Anticheat version: 1.9.53
[2020-07-18 09:40:26]  Author: Nexius
[2020-07-18 09:40:26] --------------------------------------

[2020-07-18 09:40:26] -Initializing principal game mode.
[2020-07-18 09:40:26]   -Mysql connection.
[2020-07-18 09:40:26]   -Setting Variables.
[2020-07-18 09:40:26]   -Preparing streamer plugin...
[2020-07-18 09:40:26]     -tick rate: 50;
[2020-07-18 09:40:26]     -max pickups: -1;
[2020-07-18 09:40:26]     -cell distance: 1219479552;
[2020-07-18 09:40:26]     -cell size: 300.000000;
[2020-07-18 09:40:26]   -Preparing Main Textdraws...
[2020-07-18 09:40:26]   -Spawning map icons...
[2020-07-18 09:40:26]   -Plants initializations...
[2020-07-18 09:40:26]   -Races initializations...
[2020-07-18 09:40:26]   -Blood Stains initializations...
[2020-07-18 09:40:26]   -Cheats initializations...
[2020-07-18 09:40:26]   -Noob Path Helper initializations...
[2020-07-18 09:40:26]   -Death Reasons initializations...
[2020-07-18 09:40:26]   -Objects initializations...
[2020-07-18 09:40:26]     -Acquiring object types
[2020-07-18 09:40:26]     -Spawning ground objects models
[2020-07-18 09:40:26]     -Spawning posts
[2020-07-18 09:40:26]  -Vehicles interior initializations...
[2020-07-18 09:40:26]     -Acquiring vehicles coords
[2020-07-18 09:40:26]     -Spawning vehicle interior pickups
[2020-07-18 09:40:26] -Dialog Menus initializations...
[2020-07-18 09:40:26]   -LS Stadiums initializations...
[2020-07-18 09:40:26]   -Loading Police Forces faction
[2020-07-18 09:40:26]     -Loading objects
[2020-07-18 09:40:26]     -Loading pickups
[2020-07-18 09:40:26] [TESTING]: LSPD_Weapons_Pickup = 89
[2020-07-18 09:40:26] [TESTING]: SAMA_Armour_Pickup = 94
[2020-07-18 09:40:26]   -Taxi faction initializing
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]   -Loading SF Airport Management faction
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]   -Loading LS International Airport faction
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]   -Loading SF Military Police faction
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]   -Loading LS Military Police faction.
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]   -Loading SA Anti Terrorists faction.
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]     -Spawning objects
[2020-07-18 09:40:26]   -Mush faction initializing
[2020-07-18 09:40:26]     -Spawning objects
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]   -Mush faction initializing
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]   -City Planning faction initializing
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]     -Spawning objects
[2020-07-18 09:40:26]   -Gouv faction initializing (SADA/SAAA/SABA/SACB)
[2020-07-18 09:40:26]     -Spawning objects
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26]   -Xoomer faction initializing
[2020-07-18 09:40:26]     -Spawning pickups
[2020-07-18 09:40:26] [TESTING]: LSPD_Weapons_Pickup = 89
[2020-07-18 09:40:26] -IG Player Variables initializations...
[2020-07-18 09:40:26] -Vehicle Variables initializations...
[2020-07-18 09:40:26] -Other Variables initializations...
[2020-07-18 09:40:26] -Principal game mode initializing completed.
[2020-07-18 09:40:26] 
   Game mode ready!

[2020-07-18 09:40:26] Number of vehicle models: 0
[2020-07-18 09:40:26] [SERVER]:  Vehicles are loading...
[2020-07-18 09:40:26] [MYSQL]: Receiving response on "SpawnVehicles", 861 rows.
[2020-07-18 09:40:36] [VEHICLES]: Vehicle spawned, 861 vehicles.
[2020-07-18 09:40:36] Spawning errors:
    -Vehicule id:1240(m:588) does not have a vehicle interior view associated!;
   -Vehicule id:1250(m:558) does not have a vehicle interior view associated!;

[2020-07-18 09:40:36] [MYSQL]: Receiving response on "getZonesFromDatabase", 43 rows.
[2020-07-18 09:40:36] [MYSQL]: Receiving response on "SpawnGazstations", 33 rows.
[2020-07-18 09:40:36] [DOORS]:  Doors are loading...
[2020-07-18 09:40:36] [MYSQL]: Receiving response on "LoadDoors", 1486 rows.
[2020-07-18 09:40:46] [DOORS]: loaded 16/20 map icons.
[2020-07-18 09:40:46] [MYSQL]: Receiving response on "LoggedOff_InitAllAtStart_res", 857 rows.
[2020-07-18 09:40:46] -All Player Variables initializations...
[2020-07-18 09:40:51] [MYSQL]: Receiving response on "getAreasFromDatabase", 43 rows.
[2020-07-18 09:40:51] [MYSQL]: Receiving response on "ReceiveShopsList", 157 rows.
[2020-07-18 09:40:52] [MYSQL]: Receiving response on "GetGroundCargos", 193 rows.
[2020-07-18 09:40:52] [MYSQL]: Receiving response on "Machines_LoadFromDB", 16 rows.
[2020-07-18 09:40:53] [MYSQL]: Receiving response on "elevators_loadFromDatabase", 2 rows.
[2020-07-18 09:40:53] [MYSQL]: Receiving response on "LoadSAAGFields", 11 rows.
[2020-07-18 09:40:53] [MYSQL]: Receiving response on "LoadSAAGPlants", 73 rows.
[2020-07-18 09:40:53] [MYSQL]: Receiving response on "ReceiveGovOffices", 69 rows.
[2020-07-18 09:40:53] [MYSQL]: Receiving response on "ReceiveObjectTypes", 66 rows.
[2020-07-18 09:40:53] [MYSQL]: Receiving response on "SpawnGroundObjects", 4770 rows.
[2020-07-18 09:41:03] [MYSQL]: Receiving response on "SpawnPosts", 4 rows.
[2020-07-18 09:41:04] [MYSQL]: Receiving response on "GetSasdRouteFromDb(0)", 24 rows.
[2020-07-18 09:41:04] [MYSQL]: Receiving response on "GetSasdRouteFromDb(1)", 61 rows.
[2020-07-18 09:41:04] [MYSQL]: Receiving response on "GetSasdRouteFromDb(2)", 20 rows.
[2020-07-18 09:41:04] [MYSQL]: Receiving response on "GetSasdRouteFromDb(3)", 189 rows.
[2020-07-18 09:41:04] ## SASD ROUTE TOO LARGE ## ## will truncate r:1,t:fac_sasd_jy_lsscres from 189 to 65 ##
[2020-07-18 09:41:04] [MYSQL]: Receiving response on "GetSasdRouteFromDb(4)", 10 rows.
[2020-07-18 09:41:04] [MYSQL]: Receiving response on "GetSasdRouteFromDb(5)", 26 rows.
[2020-07-18 09:41:05] [MYSQL]: Receiving response on "GetSasdRouteFromDb(6)", 2 rows.
[2020-07-18 09:41:05] [MYSQL]: Receiving response on "GetSasdRouteFromDb(7)", 150 rows.
[2020-07-18 09:41:05] ## SASD ROUTE TOO LARGE ## ## will truncate r:2,t:fac_sasd_jy_lsnebiz from 150 to 65 ##
[2020-07-18 09:41:05] [MYSQL]: Receiving response on "GetSasdRouteFromDb(8)", 0 rows.
[2020-07-18 09:41:05] [MYSQL]: Receiving response on "GetSasdRouteFromDb(9)", 31 rows.
[2020-07-18 09:41:05] [MYSQL]: Receiving response on "GetSasdRouteFromDb(10)", 19 rows.
[2020-07-18 09:41:05] [MYSQL]: Receiving response on "GetSasdRouteFromDb(11)", 12 rows.
[2020-07-18 09:41:05] [MYSQL]: Receiving response on "GetSasdRouteFromDb(12)", 9 rows.
[2020-07-18 09:41:05] [TESTING]: Finishing route, thisroute_max_leg:14, thisroute_total_leg:16
[2020-07-18 09:41:05] [TESTING]: Finishing route, thisroute_max_leg:5, thisroute_total_leg:7
[2020-07-18 09:41:05] [TESTING]: Finishing route, thisroute_max_leg:5, thisroute_total_leg:7
[2020-07-18 09:41:05] [MYSQL]: Receiving response on "elevator_floor_loadFromDatabase", 21 rows.
[2020-07-18 09:41:05] [MYSQL]: Receiving response on "elevator_floor_loadFromDatabase", 11 rows.
[2020-07-18 09:41:05] [SERVER]: The time is 9:41
[2020-07-18 09:41:10] fire_toggleVehFire(vehicleid:247, toggle:1) called.
[2020-07-18 09:41:10] fire_toggleVehFire(vehicleid:318, toggle:1) called.
[2020-07-18 09:41:10] fire_toggleVehFire(vehicleid:357, toggle:1) called.
[2020-07-18 09:41:10] fire_toggleVehFire(vehicleid:418, toggle:1) called.
[2020-07-18 09:41:10] fire_toggleVehFire(vehicleid:461, toggle:1) called.
[2020-07-18 09:41:10] fire_toggleVehFire(vehicleid:559, toggle:1) called.
[2020-07-18 09:41:28] [SERVER]: The time is 9:41
[2020-07-18 09:41:51] [SERVER]: The time is 9:41
[2020-07-18 09:42:13] [SERVER]: The time is 9:42
[2020-07-18 09:42:36] [SERVER]: Executing 'serverStart1'.
[2020-07-18 09:42:36]  
[2020-07-18 09:42:36]  
[2020-07-18 09:42:36]  
[2020-07-18 09:42:36]  ======================================= 
[2020-07-18 09:42:36]  |                                     | 
[2020-07-18 09:42:36]  |        YSI version 4.00.0001        | 
[2020-07-18 09:42:36]  |        By Alex "Y_Less" Cole        | 
[2020-07-18 09:42:36]  |                                     | 
[2020-07-18 09:42:36]  ======================================= 
[2020-07-18 09:42:36]  
[2020-07-18 09:42:36]    -black screens initialization...
[2020-07-18 09:42:36]       -players variables
[2020-07-18 09:42:36]    -black screens initialization completed.
[2020-07-18 09:42:36] ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
[2020-07-18 09:42:36] ° ° ° ° The state is being infected ° ° ° °
[2020-07-18 09:42:36] ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
[2020-07-18 09:42:36] ° ° Initializing "Infected" System
[2020-07-18 09:42:36] ° ° Initializing other plugins
[2020-07-18 09:42:36] ° ° ° Initializing Map Andreas
[2020-07-18 09:42:37] PathFinder Plugin -> Creating New Thread
[2020-07-18 09:42:37] ° ° ° Initializing FCNPC
[2020-07-18 09:42:37] ° ° ° Initializing PathFinder
[2020-07-18 09:42:37] ° ° ° Generating spawn loacations.
[2020-07-18 09:42:37] ° ° ° initializing infected
[2020-07-18 09:42:37] ° ° ° initializing reserves
[2020-07-18 09:42:37] ° ° ° initializing timers
[2020-07-18 09:42:37] ° ° ° initializing SQL connection
[2020-07-18 09:42:37] ° ° Script initialized
[2020-07-18 09:42:37]   Filterscript 'infected.amx' loaded.
[2020-07-18 09:42:37] 
----------------------------------
[2020-07-18 09:42:37]  GOUVERNEMENT OBJECT SCRIPT
[2020-07-18 09:42:37] nz = 12.557999, stream is 
[2020-07-18 09:42:37]  NB OF OBJ LOADED:  4338/X

[2020-07-18 09:42:37] ----------------------------------

[2020-07-18 09:42:37]   Filterscript 'mobjects.amx' loaded.
[2020-07-18 09:42:37]  
[2020-07-18 09:42:37]  
[2020-07-18 09:42:37]  
[2020-07-18 09:42:37]  ======================================= 
[2020-07-18 09:42:37]  |                                     | 
[2020-07-18 09:42:37]  |        YSI version 4.00.0001        | 
[2020-07-18 09:42:37]  |        By Alex "Y_Less" Cole        | 
[2020-07-18 09:42:37]  |                                     | 
[2020-07-18 09:42:37]  ======================================= 
[2020-07-18 09:42:37]  
[2020-07-18 09:42:37]    -black screens initialization...
[2020-07-18 09:42:37]       -players variables
[2020-07-18 09:42:37]    -black screens initialization completed.
[2020-07-18 09:42:37]    -LSPD Tickets initialization...
[2020-07-18 09:42:37] -Loading Testing1 Faction...
[2020-07-18 09:42:37] -Loading Testing1337 Faction...
[2020-07-18 09:42:37] [MYSQL]: Connection to `saarp` succesful!
[2020-07-18 09:42:37]   -Loading Objects...
[2020-07-18 09:42:37]   -Loading Areas...
[2020-07-18 09:42:37]   -Loading Vehicles vars...
[2020-07-18 09:42:37] -Testing1 Faction loaded correctly...
[2020-07-18 09:42:37]   Filterscript 'fac_test1.amx' loaded.
[2020-07-18 09:42:37]  
[2020-07-18 09:42:37]  
[2020-07-18 09:42:37]  
[2020-07-18 09:42:37]  ======================================= 
[2020-07-18 09:42:37]  |                                     | 
[2020-07-18 09:42:37]  |        YSI version 4.00.0001        | 
[2020-07-18 09:42:37]  |        By Alex "Y_Less" Cole        | 
[2020-07-18 09:42:37]  |                                     | 
[2020-07-18 09:42:37]  ======================================= 
[2020-07-18 09:42:37]  
[2020-07-18 09:42:38]    -black screens initialization...
[2020-07-18 09:42:38]       -players variables
[2020-07-18 09:42:38]    -black screens initialization completed.
[2020-07-18 09:42:38]       -setting BIOS environments
[2020-07-18 09:42:38]       -computers variables
[2020-07-18 09:42:38]       -players variables
[2020-07-18 09:42:38]    -computer initialization...
[2020-07-18 09:42:38]    -computer initialization completed.
[2020-07-18 09:42:38]    -tele-comunication system initializations...
[2020-07-18 09:42:38]       -Phone Objects adjustments
[2020-07-18 09:42:38]       -Phone Variables
[2020-07-18 09:42:38]       -Starting timers
[2020-07-18 09:42:38] -Loading Test2 Script...
[2020-07-18 09:42:38] -Loading Map Andreas...
[2020-07-18 09:42:38] [MYSQL]: Connection to `saarp` succesful!
[2020-07-18 09:42:38] -Test2 Script loaded correctly...
[2020-07-18 09:42:38]   Filterscript 'fac_test2.amx' loaded.
[2020-07-18 09:42:38] [MYSQL]: Receiving response on "cptr_LoadFromDatabase", 3 rows.
[2020-07-18 09:42:38] [MYSQL]: Receiving response on "GetDbPhones", 46 rows.
[2020-07-18 09:42:38] [SERVER]: The time is 9:42
[2020-07-18 09:42:41] [SERVER]: Executing 'serverStart2'.
[2020-07-18 09:42:41] Server password has been removed.
[2020-07-18 09:42:41]   Filterscript 'testing.amx' unloaded.
[2020-07-18 09:42:44] [INFECTED]: Infected must be spawned.
[2020-07-18 09:42:44] [npc:join] Infected has joined the server (203:127.0.0.1)
[2020-07-18 09:42:44] [INFECTED]: Connecting player is infected.
[2020-07-18 09:42:52] [INFECTED]: Infected must be spawned.
[2020-07-18 09:42:52] [npc:join] Infected has joined the server (202:127.0.0.1)
[2020-07-18 09:42:52] [INFECTED]: Connecting player is infected.
[2020-07-18 09:43:01] [SERVER]: The time is 9:43
[2020-07-18 09:43:01] [INFECTED]: Infected must be spawned.
[2020-07-18 09:43:01] [npc:join] Infected has joined the server (201:127.0.0.1)
[2020-07-18 09:43:01] [INFECTED]: Connecting player is infected.
[2020-07-18 09:43:09] [INFECTED]: Infected must be spawned.
[2020-07-18 09:43:09] [npc:join] Infected has joined the server (200:127.0.0.1)
[2020-07-18 09:43:09] [INFECTED]: Connecting player is infected.
[2020-07-18 09:43:18] [INFECTED]: Infected must be spawned.
[2020-07-18 09:43:18] [npc:join] Infected has joined the server (199:127.0.0.1)
[2020-07-18 09:43:18] [INFECTED]: Connecting player is infected.
[2020-07-18 09:43:24] [SERVER]: The time is 9:43
[2020-07-18 09:43:26] [INFECTED]: Infected must be spawned.
[2020-07-18 09:43:26] [npc:join] Infected has joined the server (198:127.0.0.1)
[2020-07-18 09:43:26] [INFECTED]: Connecting player is infected.
[2020-07-18 09:43:35] [INFECTED]: Infected must be spawned.
[2020-07-18 09:43:35] [npc:join] Infected has joined the server (197:127.0.0.1)
[2020-07-18 09:43:35] [INFECTED]: Connecting player is infected.
[2020-07-18 09:43:43] [INFECTED]: Infected must be spawned.
[2020-07-18 09:43:43] [npc:join] Infected has joined the server (196:127.0.0.1)
[2020-07-18 09:43:43] [INFECTED]: Connecting player is infected.
[2020-07-18 09:43:44] [TESTING]: RefreshDoorMapIcons() called (Initializer, interval=90).
[2020-07-18 09:43:46] [SERVER]: The time is 9:43
[2020-07-18 09:43:51] [INFECTED]: Infected must be spawned.
[2020-07-18 09:43:51] [npc:join] Infected has joined the server (195:127.0.0.1)
[2020-07-18 09:43:51] [INFECTED]: Connecting player is infected.
[2020-07-18 09:44:00] [INFECTED]: Infected must be spawned.
[2020-07-18 09:44:00] [npc:join] Infected has joined the server (194:127.0.0.1)
[2020-07-18 09:44:00] [INFECTED]: Connecting player is infected.
[2020-07-18 09:44:08] [INFECTED]: Infected must be spawned.
[2020-07-18 09:44:08] [npc:join] Infected has joined the server (193:127.0.0.1)
[2020-07-18 09:44:08] [INFECTED]: Connecting player is infected.
[2020-07-18 09:44:09] [SERVER]: The time is 9:44
[2020-07-18 09:44:17] [INFECTED]: Infected must be spawned.
[2020-07-18 09:44:17] [npc:join] Infected has joined the server (192:127.0.0.1)
[2020-07-18 09:44:17] [INFECTED]: Connecting player is infected.
[2020-07-18 09:44:25] [INFECTED]: Infected must be spawned.
[2020-07-18 09:44:25] [npc:join] Infected has joined the server (191:127.0.0.1)
[2020-07-18 09:44:25] [INFECTED]: Connecting player is infected.
[2020-07-18 09:44:31] [SERVER]: The time is 9:44
[2020-07-18 09:44:33] [INFECTED]: Infected must be spawned.
[2020-07-18 09:44:33] [npc:join] Infected has joined the server (190:127.0.0.1)
[2020-07-18 09:44:33] [INFECTED]: Connecting player is infected.
[2020-07-18 09:44:41] [INFECTED]: Infected must be spawned.
[2020-07-18 09:44:41] [npc:join] Infected has joined the server (189:127.0.0.1)
[2020-07-18 09:44:42] [INFECTED]: Connecting player is infected.
[2020-07-18 09:44:50] [INFECTED]: Infected must be spawned.
[2020-07-18 09:44:50] [npc:join] Infected has joined the server (188:127.0.0.1)
[2020-07-18 09:44:50] [INFECTED]: Connecting player is infected.
[2020-07-18 09:44:54] [SERVER]: The time is 9:44
[2020-07-18 09:44:58] [INFECTED]: Infected must be spawned.
[2020-07-18 09:44:58] [npc:join] Infected has joined the server (187:127.0.0.1)
[2020-07-18 09:44:58] [INFECTED]: Connecting player is infected.
[2020-07-18 09:45:06] [INFECTED]: Infected must be spawned.
[2020-07-18 09:45:06] [npc:join] Infected has joined the server (186:127.0.0.1)
[2020-07-18 09:45:06] [INFECTED]: Connecting player is infected.
[2020-07-18 09:45:15] [INFECTED]: Infected must be spawned.
[2020-07-18 09:45:15] [npc:join] Infected has joined the server (185:127.0.0.1)
[2020-07-18 09:45:15] [INFECTED]: Connecting player is infected.
[2020-07-18 09:45:16] [SERVER]: The time is 9:45
[2020-07-18 09:45:23] [INFECTED]: Infected must be spawned.
[2020-07-18 09:45:23] [npc:join] Infected has joined the server (184:127.0.0.1)

Thank you
rt-2

Missing Forward?

I've added the include to the main gamemode script. (#include <airbreak>)

Inside my script I have a public OnPlayerAirBreak(playerid). However when I try to compile it says I'm missing a forward. This is strange because there's a forward declaration already inside the include? Is this right? Do I have to add a forward in the script too?

Few questions

  1. Why you aren't releasing this on SA:MP forums ? I know that this is a memory hacking plugin, but it is a really useful one, as it can provide access to few unaccesible things from SA:MP, such as player Aim Z, surfing offsets, etc. (I patched invalid values of them by using this plugin). Also, as you said, this plugin is compatible with many SA:MP versions (probably even future ones), as it uses addresses patterns.

  2. About OnPlayerReceivedPacket/RPC. I noticed that these are actually calling when a player is sending a packet/RPC to the server. So if I use a hack for an invalid Aim Z, I have to catch it in OnPlayerReceivedPacket for packet_id ID_PLAYER_SYNC and eventually kick that player. It can be confusing. Wouldn't a name like OnPlayerSendPacket/RPCToServer be better ? I am wrong ? I am not exactly sure about this.

  3. So OnServerSendPacket/RPC is called when a packet/RPC received by the server from OnPlayerReceivedPacket/RPC is sent to a player who needs to receive it. My question is: how can I actually get the playerid this packet is coming from ? Well, I know that this question isn't exactly your business, but it is pretty hard to find things about RakNet.

  4. If a player loses connection to the server (timeout), the server is still sending data to this player, also calling OnServerSendPacket/RPC ? I guess it does, but it would be cool if it didn't (althought I don't think it is really possible), we could track crashes better. (see http://forum.sa-mp.com/showpost.php?p=3819205&postcount=37)

Anyway, great work on this !

gmx

собственно с подключенным плагином и вызовом sendrconcommand("gmx") - сервер не включается, точнее он включается, но игроков не пускает. процесс доходит до connected и все. ничего больше не вызывается.

yandex translate:
actually connected plug-in and call sendrconcommand("gmx") - the server is not included, rather it is included, but players will not let me. the process comes to connected and everything. nothing else is called.

Anti SpeedHack problem :/

Hi, i probably shall not open issue for this, but can you help me?
I have this code:

IPacket:PLAYER_SYNC(playerid, BitStream:bs)
{
	new onFootData[PR_OnFootSync];
	BS_IgnoreBits(bs, 8);
	BS_ReadOnFootSync(bs, onFootData);
	new Float:S = floatsqroot(floatpower(floatabs(onFootData[PR_velocity][0]), 2.0) + floatpower(floatabs(onFootData[PR_velocity][1]), 2.0) + floatpower(floatabs(onFootData[PR_velocity][2]), 2.0)) * 253.3;
	if(S > 100.0) 
	{
		new string[144],name[MAX_PLAYER_NAME];
		GetPlayerName(playerid, name, sizeof(name));
		format(string,sizeof(string),""SERVER"[Pawn.RakNet] "BELA"Igrac %s (%d) je kikovan zbog (OnFoot) speed hacka!", name,playerid);
		SendClientMessageToAll(-1, string);
		string[0] = EOS;
		//Kick(playerid);
		return false;
	}
	if(onFootData[PR_animationId] == 958 && onFootData[PR_weaponId] != WEAPON_PARACHUTE || onFootData[PR_animationId] == 959 && onFootData[PR_weaponId] != WEAPON_PARACHUTE)
	{
		new string[144],name[MAX_PLAYER_NAME];
		GetPlayerName(playerid, name, sizeof(name));
		format(string,sizeof(string),""SERVER"[Pawn.RakNet] "BELA"Igrac %s (%d) je kikovan zbog fly hacka!", name,playerid);
		SendClientMessageToAll(-1, string);
		string[0] = EOS;
		//Kick(playerid);
		return false;
	}
	return true;
}

And when player jump from building it kicks him for speed hack, how i can add check for that ? Thanks

Question

Does this plugin work against hackers Nametags, cleo etc?

Question about "OnFootSync"

I started using Pawn.RakNet a few days ago and while I was trying to create an anti-cheat for health/armour hack I noticed something, firstly I was not sure about opening an Issue about this but if I'm wrong u can just close this.

Why are PR_health and PR_armour integers and not floats?
I'm talking about the PR_OnFootSync enumator.

EDIT: I found the id's for all the packets

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.