Making Tutorials
#1

I was wondering how do you make tutorials. Like when you spawn it sets the camera position and says stuff.
I know a sort of sketch of how to do it

pawn Код:
public OnPlayerConnect
{
     SetCameraPos(playerid, X, Y, Z);
     SetCameraLookAt(playerid, X, Y, Z);
     return 1;
}
So is it something like that because once i start them i dont know how to end them
Reply
#2

sonething like
Код:
at the top: new bool:tut[MAX_PLAYERS];

under:onplayerconnect(playerid) {
tut[playerid]=true;
}

under: onplayerrequestclass(... ) {
 if(tut[playerid] == true){
     SetPlayerPos(playid,x,y,z);
     TogglePlayerSpectating(playerid,true);
     //say stuff textdraws whatever
 }
}
//----------------------------------------

 //then to stop it go 
tut[playerid] = false;
TogglePlayerSpectating(playerid,false);
ForceClassSelection(playerid);
SpawnPlayer(playerid);  //not 100% if this is required or not
how's that
Reply
#3

well then where would we add the

tut[playerid] = false;
TogglePlayerSpectating(playerid,false);
ForceClassSelection(playerid);
SpawnPlayer(playerid); //not 100% if this is required or not
Reply
#4

do it after they do there last bit of the tut or run a timer to do it 10secs after the last msgs or something
Reply
#5

Ok yesi think so....thanks alot
Reply
#6

i want it to happnd to only new players. how do i check if somone is registered
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)