Guest User

Untitled

a guest
May 28th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. local achieved = CCachievements.GetValue( "YesImtherealZinze", "achieved", 0 )
  2.  
  3. if ( achieved == 0 ) then
  4.     local function Check()
  5.    
  6.     if ( completed != 0 ) then return end
  7.    
  8.     local ply = LocalPlayer()
  9.         if ( !ValidEntity( ply ) ) then return end
  10.    
  11.     for _,zinze in ipairs(player.GetAll()) do
  12.         if ( string.sub( v:SteamName(), 1, 4 ) == "[Zin-Owner]" ) then
  13.             CCachievements.Update( "YesImtherealZinze", 1, "" )
  14.             CCachievements.SetValue( "YesImtherealZinze", "completed", 1 )
  15.             end
  16.         end
  17.     end
  18.     timer.Create( "achievements.zinzejoin", 1, 0, Check )
  19. end
  20.  
  21. CCachievements.Register( "Yes, I am the real Zinze!", "Play on the same server as [TG]Zinze.", "achievements/nekres", completed, "" )
Add Comment
Please, Sign In to add comment