19.07.2011, 11:22
pawn Код:
forward WaitTimer(playerid, waittime);
forward one(playerid);
forward two(playerid);
forward three(playerid);
forward start(playerid);
YCMD:test1(playerid, params[], help)
{
#pragma unused params
#pragma unused help
WaitTimer(playerid, 2000);
return 1;
}
public WaitTimer(playerid,waittime)
{
SetTimerEx("three", waittime,0,"i",playerid);
SetTimerEx("two", waittime+waittime, 0,"i",playerid);
SetTimerEx("one", waittime+waittime+waittime, 0,"i",playerid);
SetTimerEx("start", waittime+waittime+waittime+waittime, 0,"i",playerid);
}
public three(playerid)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid,"Loading",2000,2);
return 1;
}
public two(playerid)
{
GameTextForPlayer(playerid,"Loading.",2000,2);
return 1;
}
public one(playerid)
{
GameTextForPlayer(playerid,"Loading. .",2000,2);
return 1;
}
public start(playerid)
{
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid,"Loading . . .",3000,2);
return 1;
}