2018-09-19 01:14:18 +00:00
|
|
|
# Irresistible Gaming Development Framework
|
|
|
|
#### Copyright (C) 2011-2018
|
2018-09-09 16:01:29 +00:00
|
|
|
|
2018-09-19 01:14:18 +00:00
|
|
|
**Source Contributors:** Lorenc ("Lorenc") Pekaj, Steven ("Stev") Howard
|
2018-09-19 01:24:03 +00:00
|
|
|
|
2018-09-19 01:14:18 +00:00
|
|
|
**BIG THANKS to Stev, Nibble, Banging7Grams, Kova, Queen and Panther for making this possible.**
|
2018-09-09 16:01:29 +00:00
|
|
|
|
2018-09-19 01:14:18 +00:00
|
|
|
### Script Callbacks
|
2018-09-09 16:01:29 +00:00
|
|
|
|
2018-09-19 01:14:18 +00:00
|
|
|
- `public SetPlayerRandomSpawn( playerid )`
|
2018-09-23 04:56:34 +00:00
|
|
|
- Called when a player is attempting to be respawned somewhere randomly
|
|
|
|
- `public OnServerUpdate( )`
|
2018-09-19 01:14:18 +00:00
|
|
|
- Called every second (or sooner) indefinitely
|
|
|
|
- `public OnPlayerUpdateEx( playerid )`
|
|
|
|
- Same interval as OnServerUpdate, but it is called indefinitely for every player in-game
|
|
|
|
- When you wish to update something frequently, but not use OnPlayerUpdate
|
|
|
|
- `OnServerGameDayEnd( )`
|
|
|
|
- Called every 24 minutes in-game (basically when a new day starts)
|
|
|
|
- `OnNpcConnect( npcid )`
|
|
|
|
- Called specifically when an NPC connects, as OnPlayerConnect will not
|
|
|
|
- `OnNpcDisconnect( npcid, reason )`
|
|
|
|
- Called specifically when an NPC disconnects, as OnPlayerDisconnect will not
|
|
|
|
- `OnPlayerDriveVehicle( playerid, vehicleid )`
|
2018-09-23 04:56:34 +00:00
|
|
|
- Called when a player enters a vehicle as a driver
|
|
|
|
- `OnPlayerLogin( playerid, accountid )`
|
|
|
|
- Called when a player successfully logs into their account
|
2018-09-24 17:46:21 +00:00
|
|
|
- `OnHouseOwnerChange( houseid, ownerid )`
|
|
|
|
- Called when the ownership of a home is changed
|