[RPG]Make a Tutorial?
#1

At the beginning of most roleplay games, you have a tutorial and stuff. Thats what im after. I SEARCHED, but found nothing vital to what I was searching for.

Most tutorials have something like this:
___Deathmatch___
We are certainly not interested in people who come along and dm.

But its at a different camera angle.

Example: Courtesy of WestSideRydaZ Real Life Server


Someone please help?
Reply
#2

I DO NOT need people flaming about it, but my gamemode is PEN1.
Reply
#3

Quote:
Originally Posted by .:>|★Fr4zZ★|<:.
I DO NOT need people flaming about it, but my gamemode is PEN1.
You double posted, 1 minute after your previous post. In the future please use the edit button.

A tutorial can be simply made with a timer every X seconds, updating a variable. For example, timer every 15 seconds.

pawn Код:
Tutorial[playerid] = 1; //Put this when the tutorial starts

if(Tutorial[playerid] == 1)
{
SendClientMessage(playerid,COLOR_ISEEDEADPEOPLE,"Don't dm you nubcake");
Tutorial[playerid] = 2;
//Camera views
}
else if(Tutorial[playerid] == 2)
{
SendClientMessage(playerid,COLOR_ISEEDEADPEOPLE,"You can buy sausage rolls from the 24-7");
Tutorial[playerid] = 3;
//Camera views
}
It's not indented as i just did it in the forum textbox.
Reply
#4

Cool, thanks.

Do the coords of the camera views just go where it says //camera views?
Or must I make like: CameraAngle ----- bunch of code?

One last thing: Where would I put it for if when they do /regnick ---- right after that they see the tutorial?

Thanks for replying!

BTW: Sorry about my double post :P
Reply
#5

Camera positions are realy easy. Go anywhere and type /save camerapos. This is where the camere will be. Than go 1,2,5,10 or more meters away where you want to camera look at and tipe /save cameralook. Remember that if the players is away from camera the graphics will be poor so you need to put player near the camera position. Like put the player behind camera 1 or 2 meters. Like this



Hide player somewhere like in object (building, house or something else) so the rest of the players who are playing wont see him. Or put him in different Virtual World and on the end of the TUT put him back to 0 VW.

And use

if(tutorial step == some number)
{
SetPlayerCameraPos(playerid,Float,Float:y,Float: z)
SetPlayerCameraLookAt(playerid,Float,Float:y,Flo at:z)
SetPlayerPos(playerid,Float,Float:y,Float:z)
SendClientMessage(playerid, SOME_COLOR, "Step two of the tutorial. Bla bla bla");
}

For that regnick put some condtion like PlayerWillNowTakeTut[playerid] = 1; when player registers

And on some timer

PlayerWillNowTakeTut[playerid] ++;
if(PlayerWillNowTakeTut[playerid] == 1)
{
SendClientMessage(playerid, SOME_COLOR, "Begging of tut");
}
else if(PlayerWillNowTakeTut[playerid] == 15)
{
SendClientMessage(playerid, SOME_COLOR, "Tutorial step 2 like cheating");
}
and so on

Put this timer on one second so every second the PlayerWillNowTakeTut will increase for one. So after 15 seconds he will be reading tut step 2
Reply
#6

wery good
Reply
#7

I play on the WestSideRydaZ
Reply
#8

Quote:
Originally Posted by Don_Vito
wery good
What is good?
Reply
#9

Quote:
Originally Posted by cοοp
Quote:
Originally Posted by Don_Vito
wery good
What is good?
Dujmas answer I assume.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)