OnPlayerStreamOut
From SA-MP Wiki
OnPlayerStreamOut
Warning: This is a new callback working since SA-MP 0.3. It won't work in previous versions.
Important note: For the NPC version of this callback, check NPC:OnPlayerStreamOut.
This callback is called when a player is streamed out from some other player's client.
(playerid, forplayerid)
| playerid | The player who has been destreamed. |
| forplayerid | The player who has destreamed the other player. |
This function does not return a specific value, it's best to simply ignore it.
public OnPlayerStreamOut(playerid, forplayerid) { new string[80]; format(string, sizeof(string), "Your computer has just unloaded player ID %d", playerid); SendClientMessage(forplayerid, string); return 1; }
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- OnPlayerStreamIn: Called when a player streams in another player.
- OnVehicleStreamIn: Called when a player streams in a vehicle.
- OnVehicleStreamOut: Called when a player streams out a vehicle.
