02.02.2010, 17:48
pawn Код:
MyTextdraw = TextDrawCreate(155.000000, 119.000000, "Gate Status: Opened");
pawn Код:
MyTextdraw = TextDrawCreate(155.000000, 119.000000, "Gate Status: Closed");
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;
}