Help with Textdraw again.
#1

PHP код:
#endif
new PlayerText:paycheck[MAX_PLAYERS];
public 
OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    
SetTimer("myfunction",3600000,1);
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}
public 
myfunction(playerid)
{
    
GivePlayerMoney(playerid,400);
    
paycheck[playerid] = TextDrawCreate(51321"You got your paycheck");
    
TextDrawLetterSize(Text:paycheck[playerid], 0.51.5);
    
TextDrawTextSize(Text:paycheck[playerid], 12);
    
TextDrawAlignment(Text:paycheck[playerid], 3);
    
TextDrawColor(Text:paycheck[playerid], -65366);
    
TextDrawUseBox(Text:paycheck[playerid], 0);
    
TextDrawSetShadow(Text:paycheck[playerid], 2);
    
TextDrawBoxColor(Text:paycheck[playerid], -1347440726);
    
TextDrawSetOutline(Text:paycheck[playerid], 2);
    
TextDrawBackgroundColor(Text:paycheck[playerid], 170);
    
TextDrawFont(Text:paycheck[playerid], 3);
    
TextDrawSetProportional(Text:paycheck[playerid], 1);
    
TextDrawShowForPlayer(playeridpaycheck[playerid]);
    return 
1;

When I get the paycheck,the textdraw does not destroy,I need help with this that just it appears for like 5 seconds and disappear((Textdraw)) and then appears after an hour again.
Reply
#2

Change SetTimer for SetTimerEx
Reply
#3

thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)