2018-09-19 01:14:18 +00:00
|
|
|
# Irresistible Gaming Development Framework
|
2019-04-02 23:08:24 +00:00
|
|
|
#### Copyright (C) 2011-2019
|
2018-09-09 16:01:29 +00:00
|
|
|
|
2019-04-02 23:08:24 +00:00
|
|
|
**Source Contributors:** Lorenc, Stev, Damen
|
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
|
|
|
|
2019-04-02 23:08:24 +00:00
|
|
|
### Custom Script Callbacks
|
2018-09-09 16:01:29 +00:00
|
|
|
|
2019-01-01 15:37:45 +00:00
|
|
|
- `SetPlayerRandomSpawn( playerid )`
|
2018-09-23 04:56:34 +00:00
|
|
|
- Called when a player is attempting to be respawned somewhere randomly
|
2019-01-01 15:37:45 +00:00
|
|
|
- `OnServerUpdate( )`
|
2018-09-19 01:14:18 +00:00
|
|
|
- Called every second (or sooner) indefinitely
|
2019-01-01 15:37:45 +00:00
|
|
|
- `OnServerTickSecond( )`
|
2018-12-22 23:58:03 +00:00
|
|
|
- Called every second (specifically) indefinitely
|
2019-01-01 15:37:45 +00:00
|
|
|
- `OnPlayerUpdateEx( playerid )`
|
2018-09-19 01:14:18 +00:00
|
|
|
- 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
|
2019-01-01 15:37:45 +00:00
|
|
|
- `OnPlayerTickSecond( playerid )`
|
2018-12-22 23:58:03 +00:00
|
|
|
- Called every second (specifically a second) for a player, indefinitely
|
2018-09-19 01:14:18 +00:00
|
|
|
- `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
|
2019-01-01 13:19:17 +00:00
|
|
|
- `OnPlayerPassedBanCheck( playerid )`
|
|
|
|
- Called when a player passes a ban check (done before authenticating)
|
|
|
|
- `OnPlayerRegister( playerid )`
|
|
|
|
- Called when a player successfully registers an account
|
|
|
|
- `OnPlayerLogin( playerid )`
|
2018-09-23 04:56:34 +00:00
|
|
|
- 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
|
2018-09-26 04:04:39 +00:00
|
|
|
- `OnPlayerFirstSpawn( playerid )`
|
|
|
|
- Called when a player spawns for the first time
|
|
|
|
- `OnPlayerMovieMode( playerid, toggled )`
|
|
|
|
- Called when player toggles movie mode
|
2018-10-06 00:50:23 +00:00
|
|
|
- `OnPlayerAccessEntrance( playerid, entranceid )`
|
|
|
|
- Called when a player accesses an entrance id
|
2018-10-08 23:04:42 +00:00
|
|
|
- `OnPlayerEndModelPreview( playerid, handleid )`
|
|
|
|
- Called when a player closes a model preview
|
2018-11-08 10:34:54 +00:00
|
|
|
- `OnGangLoad( gangid )`
|
|
|
|
- Called when a gang is loaded
|
2018-11-09 04:04:38 +00:00
|
|
|
- `OnGangUnload( gangid, bool: deleted )`
|
|
|
|
- Called when a gang is unloaded (or deleted)
|
2018-11-10 06:57:54 +00:00
|
|
|
- `OnPlayerJoinGang( playerid, gangid )`
|
|
|
|
- Called when a player joins a gang
|
|
|
|
- `OnPlayerLeaveGang( playerid, gangid, reason )`
|
|
|
|
- Called when a player leaves a gang
|
2018-12-03 11:15:41 +00:00
|
|
|
- `OnPlayerEnterHouse( playerid, houseid )`
|
|
|
|
- Called when a player enters a house
|
2018-12-03 13:04:12 +00:00
|
|
|
- `OnPlayerAttemptBreakIn( playerid, houseid, businessid )`
|
2018-12-03 12:22:27 +00:00
|
|
|
- Called when a player attempts to break into a business/house
|
2018-12-22 10:26:52 +00:00
|
|
|
- `OnPlayerLoadTextdraws( playerid )`
|
|
|
|
- Called when a player is loading textdraws
|
|
|
|
- `OnPlayerUnloadTextdraws( playerid )`
|
|
|
|
- Called when a player is unloading textdraws (on death, request class...)
|
2018-12-22 11:48:58 +00:00
|
|
|
- `OnPlayerC4Blown( playerid, Float: X, Float: Y, Float: Z, worldid )`
|
2018-12-22 12:08:20 +00:00
|
|
|
- Called when a player C4 is blown
|
2018-12-22 13:06:42 +00:00
|
|
|
- `OnPlayerJailed( playerid )`
|
|
|
|
- Called when a player is jailed
|
2018-12-22 12:08:20 +00:00
|
|
|
- `OnPlayerUnjailed( playerid, reasonid )`
|
2018-12-22 12:22:29 +00:00
|
|
|
- Called when a player is unjailed for a reason id
|
2018-12-22 13:06:42 +00:00
|
|
|
- `OnPlayerArrested( playerid, victimid, totalarrests, totalpeople )`
|
2019-01-01 13:19:17 +00:00
|
|
|
- Called when a player is arrested
|
|
|
|
- `OnPlayerMoneyChanged( playerid, amount )`
|
2019-02-23 08:11:33 +00:00
|
|
|
- Called when a player's money is changed
|
|
|
|
- `OnServerVariablesLoaded( )`
|
2019-04-02 23:08:24 +00:00
|
|
|
- Called when server variables are fully loaded
|