Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Desync - 1.0
- * Scripted by: bw_
- */
- #include <a_samp>
- #include <YSI/y_hooks>
- Hook:bw_OnPlayerConnect(playerid)
- {
- SetPVarInt(playerid, "bw_DesyncPlayer", 0);
- return 1;
- }
- Hook:bw_OnPlayerDisconnect(playerid, reason)
- {
- SetPVarInt(playerid, "bw_DesyncPlayer", 0);
- return 1;
- }
- Hook:bw_OnPlayerUpdate(playerid)
- {
- if (GetPVarInt(playerid, "bw_DesyncPlayer") != 0)
- {
- return 0;
- }
- return 1;
- }
- stock DesyncPlayer(playerid, desync = true)
- {
- if (desync)
- {
- SetPVarInt(playerid, "bw_DesyncPlayer", 1);
- }
- else
- {
- SetPVarInt(playerid, "bw_DesyncPlayer", 0);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment