Advertisement
Marlborox

Untitled

Feb 6th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. CMD:skip(playerid, params[]) {
  2. if(TutorialSeconds[playerid] ==0) return SCM(playerid, -1, "Nu esti intr-un turorial");
  3. TutorialActive[i] = 0;
  4. if(PlayerInfo[i][pTut] == 0)
  5. {
  6. ServerAccounts++;
  7.  
  8. format(string, sizeof(string), "%s(%d) s-a inregistrat pe server. [#%d]", GetName(i), i, PlayerInfo[i][pSQLID]);
  9. SendAdminMessage(COLOR_LIGHTRED, string, 1);
  10.  
  11. for( new j = 0; j <= 50; j++) SendClientMessage(i, COLOR_WHITE, "");
  12. SendClientMessage(i, COLOR_YELLOW, "Te-ai inregistrat cu succes!");
  13. SendClientMessage(i, COLOR_YELLOW, "Server-ul ti-a plasat un checkpoint rosu pe mapa catre DMV, locul unde poti lua licenta de condus.");
  14. SendClientMessage(i, COLOR_YELLOW, "Iti uram distractie placuta!");
  15.  
  16. SetPlayerCheckpointEx(i, 1219.4441,-1813.0352,16.5938, 5.0);
  17.  
  18. ResetPlayerCash(i);
  19. GivePlayerCash(i, 15000);
  20. PlayerInfo[i][pAccount] = 20000;
  21.  
  22. format(string, sizeof(string), "UPDATE users SET `Tutorial`='1',`Bank`='20000',`Money`='15000' WHERE `name`='%s'",GetName(i));
  23. mysql_query(SQL, string);
  24. TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; CP[i] = 53;
  25. }
  26. TogglePlayerControllable(i, 1);
  27. TogglePlayerSpectating(i, 0);
  28. SetCameraBehindPlayer(i);
  29.  
  30. SpawnPlayer(i);
  31. PlayerTextDrawHide(i, TutorialTD[0]);
  32. PlayerTextDrawHide(i, TutorialTD[1]);
  33. }
  34. if(TutorialStep[i] >= 1 && TutorialStep[i] <= 6) {
  35. PlayerTextDrawSetString(i, TutorialTD[0], szTD);
  36. PlayerTextDrawShow(i, TutorialTD[0]);
  37. PlayerTextDrawShow(i, TutorialTD[1]);
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement