Пользователь
- Регистрация
- 3 Янв 2025
- Сообщения
- 99
- Автор темы
- #1
Здраствуйте,у кого есть новый -
stock sendPlayerEvent(playerid, browser_id[], event[])
{
new BitStream:bs = BS_New();
BS_WriteValue(bs,
PR_UINT8, 220,
PR_UINT8, GetPlayerLauncher(playerid) == 2 ? 84 : 17,
GetPlayerLauncher(playerid) == 2 ? PR_UINT8R_UINT32, browser_id[0]);
if(GetPlayerLauncher(playerid) == 2)
BS_WriteValue(bs,
PR_UINT8, browser_id[1]);
BS_WriteValue(bs,
PR_STRING32, event);
if(GetPlayerLauncher(playerid) != 2)
BS_WriteUint32(bs, GetPlayerLauncher(playerid) == 1 ? 255 : 13);
return PR_SendPacket(bs, playerid, GetPlayerLauncher(playerid) == 2 ? PR_HIGH_PRIORITY : PR_MEDIUM_PRIORITY, GetPlayerLauncher(playerid) == 2 ? PR_RELIABLE_ORDERED : PR_RELIABLE, GetPlayerLauncher(playerid) == 2 ? 0 : 6), BS_Delete(bs);
}