18.07.2011, 17:25
Hi All
I Make Thing Who Show New Player Connected To Server Show Lessons How To Play In The Server but..
When new player connected to the server for him show lessons everything is good but then player save game in the server after some time he connecting again to the server and for him show lessons tutorial again what can be wrong ?
This is my tutorial code :
This Is My Code What Player Get When He First Time Login To The Server :
If Someone Can.
When Help My
I Make Thing Who Show New Player Connected To Server Show Lessons How To Play In The Server but..
When new player connected to the server for him show lessons everything is good but then player save game in the server after some time he connecting again to the server and for him show lessons tutorial again what can be wrong ?
This is my tutorial code :
Код:
new TutTimer,gTutorial[MAX_PLAYERS];//New Player Tutorial public ShowTut(playerid) { if(gTutorial[playerid] == 1) { SetPlayerPos(playerid,-2012.5576,-52.6081,35.3203); SetPlayerCameraPos(playerid,-2015.2485,-60.1992,50.7830); SetPlayerCameraLookAt(playerid,-2027.4425,-69.4949,42.5411); ClearScreen(playerid); ShowPlayerDialog(playerid,422,DIALOG_STYLE_MSGBOX,"Tutorial 1","{00C0FF}JOBS","ok",""); gTutorial[playerid] = 2; } else if(gTutorial[playerid] == 2) { SetPlayerPos(playerid,-2578.1182,240.1511,9.5313); SetPlayerCameraPos(playerid,-2585.1665,235.9175,33.6671); SetPlayerCameraLookAt(playerid,-2579.9719,231.1278,26.5758); ClearScreen(playerid); ShowPlayerDialog(playerid,420,DIALOG_STYLE_MSGBOX,"{F3FF02}Tutorial 2"," TAXI","ok",""); gTutorial[playerid] = 3; } else if(gTutorial[playerid] == 3) { SetPlayerPos(playerid,-2727.0601,376.1443,4.3750); SetPlayerCameraPos(playerid,-2733.2927,389.9885,13.7258); SetPlayerCameraLookAt(playerid,-2737.4321,388.5101,13.7258); ClearScreen(playerid); ShowPlayerDialog(playerid,421,DIALOG_STYLE_MSGBOX,"{6EF83C}Tutorial 3","End of short tutorial Now you can play","OK",""); gTutorial[playerid] = 3; ClearScreen(playerid); SetCameraBehindPlayer(playerid); TogglePlayerControllable(playerid,1); GameTextForPlayer(playerid, "~y~ Good Luck!",500,1); KillTimer(TutTimer); } } stock ClearScreen(playerid) { for(new i = 0; i < 50; i++) { SendClientMessage(playerid, 0x0000A830, " "); } return 0; }
Код:
if(playerDB[playerid][naujokas]==true) { ShowPlayerDialog(playerid,212,DIALOG_STYLE_MSGBOX,"{6EF83C}Hi New Player","If you want to know how to play in our server you must see short tutorial\nWe begin tutorial now","ok",""); for(new i=0; i < MAX_PLAYERS; i++) TogglePlayerControllable(playerid, 0); TutTimer = SetTimerEx("ShowTut",1450*7, true, "i", playerid); gTutorial[playerid] = 1; GivePlayerMoneyA(playerid,15000); SetPlayerScore(playerid,2000); playerDB[playerid][drabuziai] = GetPlayerSkin(playerid); playerDB[playerid][lytis] = GetGender(playerDB[playerid][drabuziai]); playerDB[playerid][naujokas] = false; }
When Help My