SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Plugin Development (https://forum.sa-mp.com/forumdisplay.php?f=18)
-   -   [Plugin] SKY - Slice's fork of kurta999's fork of YSF (https://forum.sa-mp.com/showthread.php?t=563442)

Slice 16/02/2015 12:15 AM

SKY - Slice's fork of kurta999's fork of YSF
 
This plugin provides low-level functions to let Pawn scripts do powerful things.

This plugin in itself does not aim to provide full features, it's meant to let scripters make cool, new things.

It was made along with this include: weapon-config.inc

pawn Code:
#if defined _INC_SKY
    #endinput
#endif
#define _INC_SKY

// Make a player appear to spawn for all players but himself
native SpawnPlayerForWorld(playerid);
// Keep re-sending the last received sync data
native FreezeSyncData(playerid, bool:toggle);
// Set the HP bar (warning: affects GetPlayerHealth)
native SetFakeHealth(playerid, health);
// Set the armour bar (warning: affects GetPlayerArmour)
native SetFakeArmour(playerid, armour);
// Force a specific facing angle to sync for other players
native SetFakeFacingAngle(playerid, Float:angle = Float:0x7FFFFFFF);
// Disable stealth-knife sync (only the player doing it will see it happen)
native SetKnifeSync(toggle);
// Make a player appear dead for other players
native SendDeath(playerid);
// Set the last animation data
native SetLastAnimationData(playerid, data);
// Send the last sync data
// If an animation is specified, it will be similar to ApplyAnimation
native SendLastSyncData(playerid, toplayerid, animation = 0);
// Clear animations for another player only
native ClearAnimationsForPlayer(playerid, forplayerid);
// Disable infinity ammo bugs and other bugs (some bugs still work)
native SetDisableSyncBugs(toggle);
// Make the weapon state always synced as WEAPONSTATE_MORE_BULLETS
native SetInfiniteAmmoSync(playerid, toggle);
// Stop syncing keys for a player
native SetKeySyncBlocked(playerid, toggle);
// Same as YSF (renamed to avoid problems)
native TextDrawSetPosition(Text:text, Float:x, Float:y);
// Same as YSF (renamed to avoid problems)
native PlayerTextDrawSetPosition(playerid, PlayerText:text, Float:x, Float:y);

GitHub: https://github.com/oscar-broman/SKY
Download: https://github.com/oscar-broman/SKY/releases

Some things you can do:
  • Customize healthbars
  • Respawn and clear animations for 1 player at a time
  • Disable syncing of stealth knife (for a custom implementation via OnPlayerGiveDamage)
  • Freeze a player's sync data so the last sent data keeps getting re-sent
  • Set infinite ammo sync. You could keep sending GivePlayerWeapon(playerid, SOME_WEAPON, 0) and using infinite ammo sync to make fast-shooting RPGs and snipers
  • Disable sync bugs (mostly for non-lagcomp), such as infinite bullet bugs and slide bugs

Kar 16/02/2015 12:27 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Hell yea, so I can fix knife sync?

Gonna test this out.

Does this allow for 255 max health and make the health bar longer?

n0minal 16/02/2015 12:34 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Very good Slice!

SimonItaly 16/02/2015 12:43 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Since this is a YSF fork it still relies on SA:MP version memory addresses, right?

Slice 16/02/2015 01:17 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
I tried to limit that as much as possible. There is only a few places that will need to be updated for new versions.

It's on GitHub though, and if I don't update it in time, someone else will.

Abagail 16/02/2015 01:34 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Awesome! Slice is truly amazing, but why name it SKY? Just a weird question ;D

n0minal 16/02/2015 01:36 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
S = Slice's K= Kurta999's Y = YSF, isnt obvious?

Spetz 16/02/2015 01:44 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
This is pretty nice Slice i'll take a look on this

kurta999 17/03/2015 12:06 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
I hope this works with YSF because I added an advertisement under Download section at YSF first page.

BeckzyBoi 17/03/2015 12:45 AM

Re: SKY - Slice's fork of kurta999's fork of YSF
 
Quote:

Originally Posted by Kar (Post 3372350)
Hell yea, so I can fix knife sync?

Gonna test this out.

Does this allow for 255 max health and make the health bar longer?

^ That .Same questions from me


All times are GMT. The time now is 07:44 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.