15.04.2012, 00:01
How to make a RP tutotrial for my RP server?
My RP server is Next Revolution Roleplay
My RP server is Next Revolution Roleplay
new Tutorial[MAX_PLAYERS];
forward Tut(playerid);
public OnPlayerConnect(playerid)
{
Tutorial[playerid] = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(Tutorial[playerid] == 1) {
Tut(playerid);
Tutorial[playerid] = 2;
}
if(Tutorial[playerid] == 0) return printf("Tutorial finshed"); // normal spawn stuff.
return 1;
}
public Tut(playerid)
{
if(Tutorial[playerid] == 2) {
SetTimerEx("Tut",10000,false,"i",playerid);
// Tut part 1 stuff
Tutorial[playerid] = 3;
}
if(Tutorial[playerid] == 3) {
SetTimerEx("Tut",10000,false,"i",playerid);
// Tut part 2 stuff
Tutorial[playerid] = 4;
}
if(Tutorial[playerid] == 4) {
Tutorial[playerid] = 0;
SpawnPlayer(playerid);
}
return 1;
}