SA-MP Forums Archive
Help with Textdraw again. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with Textdraw again. (/showthread.php?tid=363134)



Help with Textdraw again. - TaLhA XIV - 26.07.2012

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.


Re: Help with Textdraw again. - ViniBorn - 26.07.2012

Change SetTimer for SetTimerEx


Re: Help with Textdraw again. - TaLhA XIV - 26.07.2012

thanks!