SA-MP Forums Archive
td not hiding when kill spree - 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: td not hiding when kill spree (/showthread.php?tid=658342)



td not hiding when kill spree - severance - 02.09.2018

PHP код:
    if(Killed[killerid] == 2){
    
       new 
string[150];
    
format(stringsizeof(string), "NICE!");
    
PlayerTextDrawSetString(killeridrname[killerid], string);
    
PlayerTextDrawShow(killeridrname[killerid]);
    
PlayerTextDrawShow(killeridarrow1[killerid]);
    
PlayerTextDrawShow(killeridarrow2[killerid]);
    
SetTimer("hidername"40000);} 
PHP код:
forward hidername(killerid);
public 
hidername(killerid)
{
  
PlayerTextDrawHide(killeridrname[killerid]);
  
PlayerTextDrawHide(killeridarrow1[killerid]);
  
PlayerTextDrawHide(killeridarrow2[killerid]);
  return 
1;




Re: td not hiding when kill spree - DeMoo - 02.09.2018

PHP код:
SetTimerEx("hidername"4000false"i"killerid); 



Re: td not hiding when kill spree - Lokii - 02.09.2018

WTF??

PHP код:
new string[150]; 
format(stringsizeof(string), "NICE!"); 
PlayerTextDrawSetString(killeridrname[killerid], string); 
no need format, also why did you use 150 cells for "NICE!" it only need 6 cells!

You could simply do that:

PHP код:
PlayerTextDrawSetString(killeridrname[killerid], "NICE!"); 



Re: td not hiding when kill spree - DeMoo - 02.09.2018

he's newbie maybe