Jump to content

[DELETED]Comanda /skip tutorial


AndrewPawno
 Share

Recommended Posts

CMD:skip(playerid, params[]) {
    if (TutTime[playerid] == 0) return SCM(playerid, -1 "Nu esti in Tutorial");
    for(new 1 = 1; < 9;  1++)  PlayerTextdrawHide(playerid, Step[playerid]);
    PlayerTextDrawHide(playerid, Tutorial[playerid]);
    TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1;
    gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
    TogglePlayerControllable(i, 1);
    SetCameraBehindPlayer(playerid);
    TogglePlayerSpectating(i, 0);
    SetPlayerSpawn(playerid);
    PlayerInfo[playerid][pAccount] = 10000;
    ResetPlayerCash(playerid);
    GivePlayerCash(i,50000);
    SetPlayerInterior(i,0);
    SetPlayerVirtualWorld(i,0);
    TogglePlayerControllable(i,true);
    new str1[256];
    mysql_format(SQL,str1,256,"UPDATE users SET `Tutorial`='1',`Bank`='0',`Money`='0' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
   mysql_tquery(SQL,str1,"","");
return 1;

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...