Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 10th, 2011  |  syntax: PAWN  |  size: 1.03 KB  |  views: 65  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <a_samp>
  2.  
  3. #define MAX_PLAY 28
  4.  
  5. new update_login_cam[MAX_PLAY];
  6.  
  7. main() {}
  8.  
  9. public OnPlayerRequestClass(playerid, classid)
  10. {
  11.         TogglePlayerSpectating(playerid, true);
  12.         update_login_cam[playerid] = 2;
  13.         return 1;
  14. }
  15.  
  16. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  17. {
  18.     TogglePlayerSpectating(playerid, false);
  19.     return 1;
  20. }
  21.  
  22. public OnPlayerUpdate(playerid)
  23. {
  24.         if(update_login_cam[playerid])
  25.         {
  26.             update_login_cam[playerid]--;
  27.  
  28.             if(update_login_cam[playerid] == 0)
  29.             {
  30.                 logincam(playerid);
  31.             }
  32.         }
  33.         return 1;
  34. }
  35.  
  36. stock logincam(playerid)
  37. {
  38.         SetPlayerCameraPos(playerid, -2441.24,-493.45,148.32);
  39.         SetPlayerCameraLookAt(playerid, -2505.24,-720.45,215.32);
  40.         SetTimerEx("spawnhim", 1234, 0, "i", playerid);
  41.         //ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Login to your account", "blah blah blah", "Login", "Quit");
  42.         return 1;
  43. }
  44.  
  45. forward spawnhim(playerid);
  46. public spawnhim(playerid)
  47. {
  48.     TogglePlayerSpectating(playerid, false);
  49.     return 1;
  50. }
  51.  
clone this paste RAW Paste Data