1
0

SKY.inc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #if defined _INC_SKY
  2. #endinput
  3. #endif
  4. #define _INC_SKY
  5. // Make a player appear to spawn for all players but himself
  6. native SpawnPlayerForWorld(playerid);
  7. // Keep re-sending the last received sync data
  8. native FreezeSyncData(playerid, bool:toggle);
  9. // Set the HP bar (warning: affects GetPlayerHealth)
  10. native SetFakeHealth(playerid, health);
  11. // Set the armour bar (warning: affects GetPlayerArmour)
  12. native SetFakeArmour(playerid, armour);
  13. // Force a specific facing angle to sync for other players
  14. native SetFakeFacingAngle(playerid, Float:angle = Float:0x7FFFFFFF);
  15. // Disable stealth-knife sync (only the player doing it will see it happen)
  16. native SetKnifeSync(toggle);
  17. // Make a player appear dead for other players
  18. native SendDeath(playerid);
  19. // Set the last animation data
  20. native SetLastAnimationData(playerid, data);
  21. // Send the last sync data
  22. // If an animation is specified, it will be similar to ApplyAnimation
  23. native SendLastSyncData(playerid, toplayerid, animation = 0);
  24. // Clear animations for another player only
  25. native ClearAnimationsForPlayer(playerid, forplayerid);
  26. // Disable infinity ammo bugs and other bugs (some bugs still work)
  27. native SetDisableSyncBugs(toggle);
  28. // Make the weapon state always synced as WEAPONSTATE_MORE_BULLETS
  29. native SetInfiniteAmmoSync(playerid, toggle);
  30. // Stop syncing keys for a player
  31. native SetKeySyncBlocked(playerid, toggle);
  32. // Same as YSF (renamed to avoid problems)
  33. native TextDrawSetPosition(Text:text, Float:x, Float:y);
  34. // Same as YSF (renamed to avoid problems)
  35. native PlayerTextDrawSetPosition(playerid, PlayerText:text, Float:x, Float:y);
  36. // Set the string of a TextDraw per-player
  37. native TextDrawSetStringForPlayer(Text:text, playerid, const string[]);