13.09.2011, 16:58
pawn Код:
public OGTTE_GameTextForPlayer(playerid, const string[], time, style)
{
SetTimerEx("OnGameTextTimeEndsForPlayer", time, 0, "i", playerid);
return GameTextForPlayer(playerid, string, time, style);
}
public OGTTE_GameTextForAll(const string[], time, style)
{
SetTimer("OnGameTextTimeEnds", time, 0);
return GameTextForPlayer(string, time, style);
}
#if defined _ALS_GameTextForPlayer
#undef GameTextForPlayer
#else
#define _ALS_GameTextForPlayer
#endif
#if defined _ALS_GameTextForAll
#undef GameTextForAll
#else
#define _ALS_GameTextForAll
#endif
forward OGTTE_GameTextForPlayer(playerid, const string[], time, style);
forward OGTTE_GameTextForAll(const string[], time, style);
forward OnGameTextTimeEndsForPlayer(playerid);
forward OnGameTextTimeEnds();
public OnGameTextTimeEndsForPlayer(playerid)
{
// gets called if a GameTextForPlayer timeouts
return 1;
}
public OnGameTextTimeEnds()
{
// gets called if a GameTextForAll timeouts
return 1;
}