02.02.2010, 18:43
Try this (Not Tested):
In Top:
InOnGameModeInit:
In "Traders":
In "close":
And "HideTD":
In Top:
pawn Код:
new Text: GateStats[MAX_PLAYERS];
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
GateStats[i] = TextDrawCreate(155.000000, 119.000000, " ");
}
//Your complete TextDraw code...
pawn Код:
public Traders()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
TextDrawShowForPlayer(playerid, GateStats[i]);
TextDrawSetString(GateStats[i], "Gate Status: Opened!");
}
print("Traders doors are now open");
MoveObject(Trader1,0.0,0.0,0.0,1.5000);
SetTimer("close",100000,false);
}
pawn Код:
public close()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
TextDrawSetString(GateStats[i], "Gate Status: Closing!");
}
print("Traders doors are now closed");
SetTimer("HideTD",5000,false);
MoveObject(Trader1,1644.0217285156, -1714.6821289063, 15.864986419678,1.5000);
}
pawn Код:
public HideTD()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
TextDrawHideForPlayer(playerid, GateStats[i]);
}