BaSs_HaXoR

On Player Spawn C#

Sep 14th, 2014
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. Source: http://adf.ly/s3cSV
  2.  
  3. bool WelcomeDisplayed[18];
  4. void onPlayerSpawned()
  5. {
  6.     for(;;)
  7.     {
  8.         for(int i = 0; i < 18; i++)
  9.         {
  10.             if(*(int*)(G_Client(i) + 0x3980) == 0x00)
  11.             {
  12.                 if(!WelcomeDisplayed[i])
  13.                 {
  14.                     sleep(250);
  15.                     /*
  16.                     Things you want on spawn here
  17.                     */
  18.                     WelcomeDisplayed[i] = true;
  19.                 }
  20.             }
  21.             else
  22.                 WelcomeDisplayed[i] = false;
  23.         }
  24.     }
  25. }
  26.  
  27. int G_Client(int client)
  28. {
  29.     return (0x0110A280 + (0x3980* client));
  30. }
Add Comment
Please, Sign In to add comment