onconnect help
#1

hello how can i hide that dialog .. for 6seconds .. ?? and show again



http://i.imgur.com/Izjtmaa.png
Reply
#2

SetTimerEx
TextDrawShowForPlayer

Edit: Oh you mean those arrows, move those textdraws in the OnPlayerConnect callback and not inside OnPlayerRequestClass.
Reply
#3

Replace the 'comments' with the textdraw hide and show codes respectively.
PHP код:
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;
} 
Reply
#4

Quote:
Originally Posted by ALiScripter
Посмотреть сообщение
Replace the 'comments' with the textdraw hide and show codes respectively.
PHP код:
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;
} 
Question: TogglePlayerSpectating true onplayerconnect will prevent from going to next callback OnPlayerRequestClass?
Reply
#5

Quote:
Originally Posted by Shinja
Посмотреть сообщение
Question: TogglePlayerSpectating true onplayerconnect will prevent from going to next callback OnPlayerRequestClass?
Ofcourse.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)