Guest User

Global

a guest
May 16th, 2022
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.56 KB | None | 0 0
  1.                                                                                                                                                                                                                                                                                     /*
  2.                             YT Global modul
  3.             <<------------------------------------------->>                                                                                                                                                                                                                                                                        
  4.                                                                                                                                                                                                                                                                                     */
  5.  
  6. #include "a_samp"
  7. #include "YSI_Storage\y_ini"
  8. #include "YSI_Coding\y_hooks"
  9. #include "YSI_Visual\y_commands"
  10. #include "streamer"
  11. #include "sscanf2"
  12.  
  13.             #define color_white             "{FFFFFF}"
  14.             #define color_red               "{C72639}"
  15.             #define color_gray              "{CFCFCF}"
  16.             #define color_green             "{2FED3C}"
  17.             #define color_yellow            "{FFFF33}"
  18.             #define color_lorange           "{E3C36B}"
  19.  
  20. forward KickPlayer(playerid);
  21.  
  22. public KickPlayer(playerid) return Kick(playerid);
  23.  
  24. stock PlayerNameFromID(playerid)    {
  25.     new PlayerName[MAX_PLAYER_NAME];
  26.     GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  27.     return PlayerName;
  28. }          
  29.  
  30. stock AccountPath(playerid) {
  31.     new string[128];
  32.     format(string, sizeof(string), ACCOUNT_path, PlayerNameFromID(playerid));
  33.     return string;
  34. }
  35.  
  36. stock udb_hash(buf[])   {
  37.     new length = strlen(buf), s1 = 1, s2 = 0;
  38.     for(  new n = 0; n < length; n++ )  {
  39.         s1 = ( s1 + buf[n] ) % 65521;
  40.         s2 = ( s2 + s1 ) % 65521;
  41.     }
  42.     return ( s2 << 16 ) + s1;
  43. }
  44.  
  45. hook OnGameModeInit()   {
  46.     new h, m, s;
  47.     gettime( h, m, s );
  48.     printf("[ %02d:%02d:%02d ] YT_Global skripta ucitana!", h, m, s);
  49.  
  50.     EnableStuntBonusForAll(0);
  51.     DisableInteriorEnterExits();
  52.     return 1;
  53. }
  54.  
  55. hook OnPlayerSpawn(playerid)    {
  56.     SetPlayerSkin(playerid, PlayerInfo[playerid][PLAYER_Skin]);
  57.     return 1;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment