Theodore123

Untitled

Jan 23rd, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. public OnPlayerRequestClass(playerid, classid)
  2. {
  3. //-----------------
  4. PlayerPlaySound(playerid, 1067, 0.0, 0.0, 0.0);
  5. new RandomStart;
  6. new plname[MAX_PLAYER_NAME];
  7. new string[128];
  8. RandomStart = random(2);
  9. switch(RandomStart)
  10. {
  11. case 0:
  12. {
  13. InterpolateCameraPos(playerid, 1167.263549, -953.536621, 44.003799, 1238.583618, -933.317016, 41.953529, 10000, 1);
  14. InterpolateCameraLookAt(playerid, 1168.216918, -953.339111, 43.775718, 1242.507446, -932.542785, 41.891162, 10000, 1);
  15. PlayerInfo[playerid][pInt] = 0;
  16. SetPlayerInterior(playerid, 0);
  17. SetPlayerPos(playerid, 1134.3859,-910.9868,62.9894);
  18. }
  19. case 1:
  20. {
  21. InterpolateCameraPos(playerid, 1291.788452, -807.976135, 88.962501, 1248.348632, -804.083923, 98.385025, 3000, 1);
  22. InterpolateCameraLookAt(playerid, 1291.308471, -808.819519, 89.203948, 1244.513427, -803.718261, 99.460784, 3000, 1);
  23. PlayerInfo[playerid][pInt] = 0;
  24. SetPlayerInterior(playerid, 0);
  25. SetPlayerPos(playerid, 1134.3859,-910.9868,62.9894);
  26. }
  27. }
  28. //-----------------
  29. if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1 && IsPlayerNPC(playerid) !=1)
  30. {
  31. ClearChatbox(playerid, 20);
  32. if (gPlayerAccount[playerid] != 0)
  33. {
  34. new loginstring[512];
  35. new loginname[64];
  36. GetPlayerName(playerid,loginname,sizeof(loginname));
  37. TVOJOT DIALOG TUKA
  38. }
  39. else
  40. {
  41. gPlayerAccount[playerid] = 0;
  42. new regstring[512];
  43. new regname[64];
  44. GetPlayerName(playerid,regname,sizeof(regname));
  45. TVOJOT DIALOG TUKA
  46. }
  47. PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
  48. PlayerInfo[playerid][pModel] = Peds[classid][0];
  49. SetPlayerTeamFromClass(playerid,classid);
  50. }
  51. else SpawnPlayer(playerid);
  52. return false;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment