Advertisement
Guest User

Untitled

a guest
Dec 10th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.03 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement