Making Tutorials
#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


Messages In This Thread
Making Tutorials - by ToPhrESH - 15.07.2010, 05:26
Re: Making Tutorials - by (SF)Noobanatior - 15.07.2010, 05:52
Re: Making Tutorials - by ToPhrESH - 15.07.2010, 06:27
Re: Making Tutorials - by (SF)Noobanatior - 15.07.2010, 08:37
Re: Making Tutorials - by ToPhrESH - 16.07.2010, 01:43
Re: Making Tutorials - by ToPhrESH - 16.07.2010, 02:55

Forum Jump:


Users browsing this thread: 5 Guest(s)