Textdraw problem
#4

pawn Код:
MyTextdraw = TextDrawCreate(155.000000, 119.000000, "Gate Status: Opened");
At the moment of opening the gate.

pawn Код:
MyTextdraw = TextDrawCreate(155.000000, 119.000000, "Gate Status: Closed");
At the moment of closing the gate.

EG:

pawn Код:
OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/open", true) == 0)
  {
    // the code to open the gate
    MyTextdraw = TextDrawCreate(155.000000, 119.000000, "Gate Status: Opened");
    return 1;
  }
  else if(strcmp(cmdtext, "/close", true) == 0)
  {
    // code to close the gate
    MyTextdraw = TextDrawCreate(155.000000, 119.000000, "Gate Status: Closed");
    return 1;
  }
  return 0;
}
Reply


Messages In This Thread
Textdraw problem - by hardstop - 02.02.2010, 17:29
Re: Textdraw problem - by [03]Garsino - 02.02.2010, 17:43
Re: Textdraw problem - by hardstop - 02.02.2010, 17:44
Re: Textdraw problem - by Miguel - 02.02.2010, 17:48
Re: Textdraw problem - by hardstop - 02.02.2010, 17:49
Re: Textdraw problem - by [03]Garsino - 02.02.2010, 17:49
Re: Textdraw problem - by hardstop - 02.02.2010, 17:54
Re: Textdraw problem - by LuxurioN™ - 02.02.2010, 18:43

Forum Jump:


Users browsing this thread: 1 Guest(s)