01.11.2012, 16:43
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;
}