08.03.2015, 15:56
I do not wan't a player to go through the tutorial again after registering.
Код:
case 1: { new str[1024]; ClearChatbox(playerid); HideTutGUIFrame(playerid, 2); ShowTutGUIFrame(playerid, 3); TutStep[playerid] = 3; // Los Santos ATM (Camera) SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); Streamer_UpdateEx(playerid, 2140.5173,-1163.9576,23.9922); SetPlayerPos(playerid, 2140.5173,-1163.9576,-10.0); SetPlayerCameraPos(playerid, 2145.8252,-1159.2659,27.7218); SetPlayerCameraLookAt(playerid, 2140.5173,-1163.9576,23.9922); strcat(str, "{FFFFFF}There are dozens of ATMs around the city of LS.\n"); strcat(str, "This are placed to make managing your money more convenient.\n"); strcat(str, "You can use /atmwithdraw and /atmdeposit.\n"); strcat(str, "There is a small service charge for using a ATM.\n"); strcat(str, "{FF8000}Pres next to continue."); ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{00FF22}Tutorial | Managing Your Money", str, "Next", "Cancel"); } case 2: { new str[1024]; ClearChatbox(playerid); HideTutGUIFrame(playerid, 3); ShowTutGUIFrame(playerid, 4); TutStep[playerid] = 4; // Fishing Pier (Camera) SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); Streamer_UpdateEx(playerid, 370.0804,-2087.8767,7.8359); SetPlayerPos(playerid, 370.0804,-2087.8767,-10.0); SetPlayerCameraPos(playerid, 423.3802,-2067.7915,29.8605); SetPlayerCameraLookAt(playerid, 370.0804,-2087.8767,7.8359); strcat(str, "{FFFFFF}The community is currently based within Los Angeles.\n"); strcat(str, "There are restrictions you cannot pass; you cannot go to SF/LV.\n"); strcat(str, "To earn a spot in moderation or administration, play for a long time and wait to be chosen.\n"); strcat(str, "{FF8000}Press next to continue."); ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{00FF22}Tutorial | Administrators/Moderators", str, "Next", "Cancel"); } case 3: { new str[1024]; HideTutGUIBox(playerid); HideTutGUIFrame(playerid, 20); TutStep[playerid] = 0; ClearChatbox(playerid); PlayerInfo[playerid][pTut] = 1; PlayerInfo[playerid][pLevel] = 1; PlayerInfo[playerid][pConnectTime] = 2; SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0; TogglePlayerControllable(playerid, 1); PlayerInfo[playerid][pReg] = 1; SetCamBack(playerid); DeletePVar(playerid, "MedicBill"); SetPlayerColor(playerid,TEAM_HIT_COLOR); SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1722.7611,-1915.6167,13.5647); SetPlayerFacingAngle(playerid, 359.4621); SetCameraBehindPlayer(playerid); SetPlayerVirtualWorld(playerid, 0); strcat(str, "{FFFFFF}This tutorial was designed to help you get started in the server.\n"); strcat(str, "If you have any question you can either talk in '/newb' or '/requesthelp'\n"); strcat(str, "Make sure to sign-up on the forums \n"); strcat(str, "Teamspeak Server: ------------- \n"); strcat(str, "Thank you, and we hope you have a nice experence in Los Angeles Roleplay!\n"); ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{00FF22}Tutorial | Wrapping things up", str, "Ok", "Cancel"); SendClientMessageEx(playerid, COLOR_GREEN, "------------------------------------------------------------------------"); SendClientMessageEx(playerid, COLOR_WHITE, "You have been given 10,000$ for registering to the server!"); SendClientMessageEx(playerid, COLOR_WHITE, "You have been given two respect points for registering to the server!"); SendClientMessageEx(playerid, COLOR_LIGHTRED, "You may possess/use weapons"); SendClientMessageEx(playerid, COLOR_YELLOW, "If you need any administration assistance, feel free to use /ma"); SendClientMessageEx(playerid, COLOR_GREEN, "------------------------------------------------------------------------"); GivePlayerMoney(playerid, 10000); } } } } return 1; }