Salut. Am incercat sa fac comanda /skip pentru a trece peste tutorial dar nu inteleg ce nu merge. Sunt la inceput.
YCMD:skip(playerid, params[]) {
if(TutorialActive[playerid] == 0) return SCM(playerid, -1,"Nu poti folosii comanda aceasta!");
new i = playerid, string[256];
TutorialActive = 0;
if(PlayerInfo[pTut] == 0) {
ServerAccounts++;
format(string, sizeof(string), "%s(%d) s-a inregistrat pe server. [#%d]", GetName(i), i, PlayerInfo[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, "Tasteaza /bonus pentru a primii cadoul de deschidere.");
SetPlayerCheckpointEx(i, 1219.4441,-1813.0352,16.5938, 5.0);
ResetPlayerCash(i);
GivePlayerCash(i, 1500000);
PlayerInfo[pAccount] = 2000000;
format(string, sizeof(string), "UPDATE users SET Tutorial='1',Bank='2000000',Money='1500000' WHERE name='%s'",GetName(i));
mysql_query(SQL, string);
TutTime = 0; PlayerInfo[pTut] = 1; gOoc = 0; gNews = 0; gFam = 0; CP = 53;
TogglePlayerControllable(i, 1);
TogglePlayerSpectating(i, 0);
SetCameraBehindPlayer(i);
SpawnPlayer(i);
}
return 1;
}