View Full Version : Tutorial System Problem [IMPORTANT]

zT KiNgKoNg
22/07/2013, 06:57 PM
I've just scripted a new tutorial system for a server i'm working for but when a player finishes with (MALE, and AGE) he should be put into spec mode and the camera moved around FortCarson but when it does start it sends him into the air.

if(dialogid == AGEMENU)

RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
CanTalk[playerid] = 0;


TutorialTimer [ playerid ] = SetTimerEx( "Tutorial_Stage", 60000, true, "i", playerid );

return 1;


forward Tutorial_Stage ( playerid );
public Tutorial_Stage ( playerid )
switch( TutorialStage [ playerid ] ) // This is faster than an 'if statement'
case 1:
TogglePlayerSpectating(playerid, 1);
SetPlayerCameraLookAt(playerid, 106.2978, 1198.3945, 19.9715);
InterpolateCameraPos(playerid, 107.4215, 1198.0710, 18.7307,-195.8836, 1198.2191, 18.6198, 100000, CAMERA_MOVE);
SendClientMessage(playerid,COLOR_WHITE,"[Tutorial]: First of all thanks for choosing Country Side Roleplay, We hope you enjoy your time here.");
SendClientMessage(playerid,COLOR_WHITE,"[Tutorial]: We're based in a town called Forst Carson witch in in turn situated in Bone County.");
SendClientMessage(playerid,COLOR_WHITE,"[Tutorial]: There's allot of thing to around Forst Carson along with allot of new thing in other areas.");
SendClientMessage(playerid,COLOR_WHITE,"[Tutorial]: You may purchase a mobile phone,mask or other type of items for the main stores in Fort Carson. ");
case 2:
SetPlayerCameraLookAt(playerid, -198.0172, 1187.1104, 19.6305);
InterpolateCameraPos(playerid, -198.0701, 1187.8322, 18.6198, -198.2120, 1029.8379, 18.5820, 100000, CAMERA_MOVE);

SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: This is the Bone County Sheriffs Department, They're tasked to keep the civillians -");
SendClientMessage(playerid, COLOR_WHITE,"- of Fort Carson and Bone County safe, They do this by arresting, ticketing and warning offenders");

SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: You may apply for a position in the BCSD on our forums, They will not hire you upfront");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: You may ask a member of the BCSD ranked Corporal or above to have a ride along.");

case 3:

SetPlayerCameraLookAt(playerid, -806.7546, 1400.6078, 57.2880);
InterpolateCameraPos(playerid, -806.1511, 1399.0164, 56.5548, -897.8854, 1549.5867, 80.0000, 100000, CAMERA_MOVE);

SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: This is the Fort Carson strip, As mentioned in the first part you can buy allot of items here.");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: Items such as Phones,House Radios, Masks and allot fo intresting items that you can find out on your own");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: Most businesses are buyable so if you get the money togeather you can buy one, And earn allot of money from it");

case 4:
SetPlayerCameraLookAt(playerid, -179.5652, 2621.9099, 79.8683);
InterpolateCameraPos(playerid, -177.4600, 2628.0244, 77.8289, -266.3702, 2633.9324, 77.8289, 100000, CAMERA_MOVE);

SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: This is one of the many jobs you can get on the server (Trucking).");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: You can transport good such as Weapons (illegal) and medical supplies (legal) to differant locations.");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: We suggest that you take up this job are one or your first, Until you're level five possibly.");
case 5:
SetPlayerCameraLookAt(playerid, -405.5584, 2593.5674, 59.7746);
InterpolateCameraPos(playerid, -411.5103, 2593.1628, 56.5368, -546.0001, 2592.1189, 53.3264, 100000, CAMERA_MOVE);

SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: In this part of Bone County you can collect items that are important to the criminal world, So don't spend to much time here");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: Items you can collect by paying for them are Seeds for drugs, Crack for dealing And packages for materials");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: Be careful we you're carrying any of these items because the Deputys have the right to arrest you and interview you aswell");
case 6:
SetPlayerCameraLookAt(playerid, -198.0172, 1187.1104, 19.6305);
InterpolateCameraPos(playerid, -198.0701, 1187.8322, 18.6198, -198.2120, 1029.8379, 18.5820, 100000, CAMERA_MOVE);

SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: This is the Bone County Fire Department, They're tasked to fight to fires around Bone Country and response to medical calls");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: Medical calls can include, MVA (Crashes), Gun shots wounds, Fights, Stabbings and allot more call outs");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: The fire department get as much action as the Sheriffs Department so don't think the SD get more action");
case 7:
TogglePlayerSpectating(playerid, 0);
SetPlayerPos(playerid, -81.3852, 1359.4154, 9.5938);

SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: Thanks for completing the tutorial stage you're now free to continue playing");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: Make sure you follow the server rules at all times no execptions");
SendClientMessage(playerid, COLOR_WHITE,"[Tutorial]: Just a reminder this is a heavy roleplay server at all times");
return true;
return TutorialStage [ playerid ] ++;
// Every time the function is called, the TextDraw is refreshed (Hidden & then re-shown and their ScreenStatus goes up 1.

22/07/2013, 07:01 PM
Thank you sooo much! :D

zT KiNgKoNg
23/07/2013, 09:24 AM
Why are you saying thank you, This is a help request not a give-away.