Untitled
By: a guest | Jul 4th, 2009 | Syntax:
None | Size: 0.66 KB | Hits: 28 | Expires: Never
forward Tutorial(playerid,status);
new tutstatus[MAX_PLAYERS];
public Tutorial(status,playerid);
{
if(status == 0)
{
// What you want here
SetTimerEx("Tutorial",5000,0,"ii",playerid,tutstatus[playerid]+1);
return 1;
}
if(status == 1)
{
// what you want here
SetTimerEx("Tutorial",5000,0,"ii",playerid,tutstatus[playerid]+1);
return 1;
}
// repeat if(status ...) until you're done.
}
// To start the cycle, just call Tutorial(playerid,tutstatus[playerid]); Remember to set the players tutstatus to 0 when they connect to the server, this means they will always start from the beginning of the cycle, not where the previous player finished.