Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:skip(playerid, params[]) {
- if(TutorialSeconds[playerid] ==0) return SCM(playerid, -1, "Nu esti intr-un turorial");
- TutorialActive[i] = 0;
- if(PlayerInfo[i][pTut] == 0)
- {
- ServerAccounts++;
- format(string, sizeof(string), "%s(%d) s-a inregistrat pe server. [#%d]", GetName(i), i, PlayerInfo[i][pSQLID]);
- SendAdminMessage(COLOR_LIGHTRED, string, 1);
- for( new j = 0; j <= 50; j++) SendClientMessage(i, COLOR_WHITE, "");
- SendClientMessage(i, COLOR_YELLOW, "Te-ai inregistrat cu succes!");
- SendClientMessage(i, COLOR_YELLOW, "Server-ul ti-a plasat un checkpoint rosu pe mapa catre DMV, locul unde poti lua licenta de condus.");
- SendClientMessage(i, COLOR_YELLOW, "Iti uram distractie placuta!");
- SetPlayerCheckpointEx(i, 1219.4441,-1813.0352,16.5938, 5.0);
- ResetPlayerCash(i);
- GivePlayerCash(i, 15000);
- PlayerInfo[i][pAccount] = 20000;
- format(string, sizeof(string), "UPDATE users SET `Tutorial`='1',`Bank`='20000',`Money`='15000' WHERE `name`='%s'",GetName(i));
- mysql_query(SQL, string);
- TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; CP[i] = 53;
- }
- TogglePlayerControllable(i, 1);
- TogglePlayerSpectating(i, 0);
- SetCameraBehindPlayer(i);
- SpawnPlayer(i);
- PlayerTextDrawHide(i, TutorialTD[0]);
- PlayerTextDrawHide(i, TutorialTD[1]);
- }
- if(TutorialStep[i] >= 1 && TutorialStep[i] <= 6) {
- PlayerTextDrawSetString(i, TutorialTD[0], szTD);
- PlayerTextDrawShow(i, TutorialTD[0]);
- PlayerTextDrawShow(i, TutorialTD[1]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement