public OnPlayerConnect(playerid)
{
if (!IsPlayerNPC(playerid))
{
Streamer_CallbackHook(STREAMER_OPC, playerid);
}
if (Streamer_g_OPC)
{
return CallLocalFunction(\"Streamer_OnPlayerConnect\", \"d\", playerid);
}
return 1;
}
#if defined _ALS_OnPlayerConnect
#undef OnPlayerConnect
#else
#define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect Streamer_OnPlayerConnect
forward Streamer_OnPlayerConnect(playerid);
public OnPlayerDisconnect(playerid, reason)
{
if (!IsPlayerNPC(playerid))
{
Streamer_CallbackHook(STREAMER_OPDC, playerid, reason);
}
if (Streamer_g_OPDC)
{
return CallLocalFunction(\"Streamer_OnPlayerDisconnect\", \"dd\", playerid, reason);
}
return 1;
}
#if defined _ALS_OnPlayerDisconnect
#undef OnPlayerDisconnect
#else
#define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Streamer_OnPlayerDisconnect
forward Streamer_OnPlayerDisconnect(playerid, reason);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (!IsPlayerNPC(playerid))
{
Streamer_CallbackHook(STREAMER_OPPP, playerid, pickupid);
}
if (Streamer_g_OPPP)
{
return CallLocalFunction(\"Streamer_OnPlayerPickUpPickup\", \"dd\", playerid, pickupid);
}
return 1;
}