pawn Code:
if(PlayerInfo[playerid][pTutDone] == 0)
{
// Gets the players name
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
// Add the player camera, etc.
SetPlayerPos(plname,1796.2111, -1743.2144, 10.9680);
SetPlayerCameraPos(plname, 1796.2111, -1743.2144, 24.9680);
SetPlayerCameraLookAt(plname, 1796.9711, -1742.5735, 24.9130);
// Sets player virtual world, and interior to 0.
SafeSetPlayerInterior(plname, 0);
SetPlayerVirtualWorld(plname, 0);
// Freezes the player to stop you falling.
TogglePlayerControllable(plname, 0);
// Clears the chat-box for the user.
ClearChatbox(plname, 100);
// Sends the client messages.
SendClientMessage(giveplayer, COLOR_LIGHTBLUE,"::..Los Santos Police Department..::");
SendClientMessage(giveplayer, COLOR_WHITE,"This is the LSPD, Los Santos Police Department,");
SendClientMessage(giveplayer, COLOR_WHITE,"If you need any help, you can call for the police to come to you,");
SendClientMessage(giveplayer, COLOR_WHITE,"USAGE: /call 911, this will inform the police you're in need, of an officer.");
// Move to the next tutorial step.
SetTimer("TutorialStep01", 11000, 0);
// Return 1;
return 1;
}
Why is it when new people come on the server, Everybody gets thrown into tutorial, again, or it just simpily doesn't work, that won't compile either, anybody know issue?
i think the problem is that it detects that "[pTutDone] == 0" is 0 and shows the tutorial but after the end of tutorial is doesnt set "[pTutDone]" to "1". make it to change "[pTutDone]" to "1" in the end of tutorial.