Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #tryinclude <a_samp>
- #if defined dontfalloff_included
- #error You already included dontfalloff.inc!
- #endif
- stock temp_RemovePlayerFromVehicle(playerid)
- {
- CallRemoteFunction("DontFallOff", "d", playerid);
- return RemovePlayerFromVehicle(playerid);
- }
- #if defined _ALS_RemovePlayerFromVehicle //This checks if SetPlayerScore is defined
- #undef RemovePlayerFromVehicle //This undefines it, so you can hook it with the function above
- #else
- #define _ALS_RemovePlayerFromVehicle //This defines it if it's not defined
- #endif
- #define RemovePlayerFromVehicle temp_RemovePlayerFromVehicle //This defines the default function as our function "My_SetPlayerScore"
- stock temp_SetPlayerPos(playerid, Float:x, Float:y, Float:z)
- {
- CallRemoteFunction("DontFallOff", "d", playerid);
- return SetPlayerPos(playerid, Float:x, Float:y, Float:z);
- }
- #if defined _ALS_SetPlayerPos //This checks if SetPlayerScore is defined
- #undef SetPlayerPos //This undefines it, so you can hook it with the function above
- #else
- #define _ALS_SetPlayerPos //This defines it if it's not defined
- #endif
- #define SetPlayerPos temp_SetPlayerPos //This defines the default function as our function "My_SetPlayerScore"
Advertisement
Add Comment
Please, Sign In to add comment