Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define MAX_PLAY 28
- new update_login_cam[MAX_PLAY];
- main() {}
- public OnPlayerRequestClass(playerid, classid)
- {
- TogglePlayerSpectating(playerid, true);
- update_login_cam[playerid] = 2;
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- TogglePlayerSpectating(playerid, false);
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(update_login_cam[playerid])
- {
- update_login_cam[playerid]--;
- if(update_login_cam[playerid] == 0)
- {
- logincam(playerid);
- }
- }
- return 1;
- }
- stock logincam(playerid)
- {
- SetPlayerCameraPos(playerid, -2441.24,-493.45,148.32);
- SetPlayerCameraLookAt(playerid, -2505.24,-720.45,215.32);
- SetTimerEx("spawnhim", 1234, 0, "i", playerid);
- //ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Login to your account", "blah blah blah", "Login", "Quit");
- return 1;
- }
- forward spawnhim(playerid);
- public spawnhim(playerid)
- {
- TogglePlayerSpectating(playerid, false);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement