06.08.2016, 08:21
hello how can i hide that dialog .. for 6seconds .. ?? and show again
http://i.imgur.com/Izjtmaa.png
http://i.imgur.com/Izjtmaa.png
public OnPlayerConnect(playerid)
{
// show the textdraw
TogglePlayerSpectating(playerid, true);
PlayerSpectatePlayer(playerid, playerid);
SetTimerEx("show", 6000, false, "i", playerid);
return 1;
}
forward show(playerid);
public show(playerid)
{
// hide the textdraw
TogglePlayerSpectating(playerid, false);
return 1;
}
Replace the 'comments' with the textdraw hide and show codes respectively.
PHP код:
|