SA-MP Forums Archive
wasted style is not showing - 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: wasted style is not showing (/showthread.php?tid=586366)



wasted style is not showing - JeaSon - 21.08.2015

well problem is its not showing when player die

PHP код:

public OnGameModeInit()
{
   
WastedTextDraws();
   return 
1;
}
WastedTextDraws()
{
 
 
        
TDEditor_PTD[0] = TextDrawCreate(-117.333343, -119.192596"ld_spac:black");
        
TextDrawLetterSize(TDEditor_PTD[0], 0.0000000.000000);
        
TextDrawTextSize(TDEditor_PTD[0], 914.333129783.984985);
        
TextDrawAlignment(TDEditor_PTD[0], 1);
        
TextDrawColor(TDEditor_PTD[0], -186);
        
TextDrawSetShadow(TDEditor_PTD[0], 0);
        
TextDrawSetOutline(TDEditor_PTD[0], 0);
        
TextDrawBackgroundColor(TDEditor_PTD[0], 255);
        
TextDrawFont(TDEditor_PTD[0], 4);
        
TextDrawSetProportional(TDEditor_PTD[0], 0);
        
TextDrawSetShadow(TDEditor_PTD[0], 0);
 
        
TDEditor_PTD[1] = TextDrawCreate(320.000000190.000000"eliminado");
        
TextDrawLetterSize(TDEditor_PTD[1], 0.7309973.043555);
        
TextDrawAlignment(TDEditor_PTD[1] ,2);
        
TextDrawColor(TDEditor_PTD[1], -76);
        
TextDrawSetShadow(TDEditor_PTD[1], 0);
        
TextDrawSetOutline(TDEditor_PTD[1], 0);
        
TextDrawBackgroundColor(TDEditor_PTD[1], 255);
        
TextDrawFont(TDEditor_PTD[1], 3);
        
TextDrawSetProportional(TDEditor_PTD[1], 1);
        
TextDrawSetShadow(TDEditor_PTD[1], 0);
 
        
TDEditor_PTD[2] = TextDrawCreate(-17.666658165.300109"");
        
TextDrawLetterSize(TDEditor_PTD[2], 0.0000000.000000);
        
TextDrawTextSize(TDEditor_PTD[2], 668.00006186.266624);
        
TextDrawAlignment(TDEditor_PTD[2], 1);
        
TextDrawColor(TDEditor_PTD[2], 140);
        
TextDrawSetShadow(TDEditor_PTD[2], 0);
        
TextDrawSetOutline(TDEditor_PTD[2], 0);
        
TextDrawBackgroundColor(TDEditor_PTD[2], 0);
        
TextDrawFont(TDEditor_PTD[2], 5);
        
TextDrawSetProportional(TDEditor_PTD[2], 0);
        
TextDrawSetShadow(TDEditor_PTD[2], 0);
        
TextDrawSetPreviewModel(TDEditor_PTD[2], 19454);
        
TextDrawSetPreviewRot(TDEditor_PTD[2], 0.0000000.00000070.0000000.375391);
 
        
TDEditor_PTD[3] = TextDrawCreate(320.000000215.100479"puto_nub_de_mierda");
        
TextDrawLetterSize(TDEditor_PTD[3] , 0.3523311.583407);
        
TextDrawAlignment(TDEditor_PTD[3], 2);
        
TextDrawColor(TDEditor_PTD[3], -2359116);
        
TextDrawSetShadow(TDEditor_PTD[3], 0);
        
TextDrawSetOutline(TDEditor_PTD[3], 0);
        
TextDrawBackgroundColor(TDEditor_PTD[3], 255);
        
TextDrawFont(TDEditor_PTD[3], 1);
        
TextDrawSetProportional(TDEditor_PTD[3], 1);
        
TextDrawSetShadow(TDEditor_PTD[3], 0);
 
        return 
1;
 
}
 
 
 
public 
OnPlayerDeath(playeridkilleridreason)
{
        
TextDrawShowForPlayer(playeridTDEditor_PTD[0]);
        
TextDrawShowForPlayer(playeridTDEditor_PTD[1]);
        
TextDrawShowForPlayer(playeridTDEditor_PTD[2]);
        
TextDrawShowForPlayer(playeridTDEditor_PTD[3]);
 
        return 
1;
}
 
public 
OnPlayerSpawn(playerid)
{
        
TextDrawHideForPlayer(playeridTDEditor_PTD[3]);
        
TextDrawHideForPlayer(playeridTDEditor_PTD[0]);
        
TextDrawHideForPlayer(playeridTDEditor_PTD[1]);
        
TextDrawHideForPlayer(playeridTDEditor_PTD[2]);
        return 
1;




Re: wasted style is not showing - Nephxes - 21.08.2015

How do you even compile this script? You have error in callback OnPlayerSpawn. You have playierd, should be playerid. And yeah, if it's script, you should change OnGameModeInit to OnFilterScriptInit.


Re: wasted style is not showing - JeaSon - 21.08.2015

sorry it was mistake but i have playerid in onplayerspawn and everything is in gamemode so how can it be OnFilterScriptInit


Re: wasted style is not showing - Nephxes - 21.08.2015

If you have it in gamemode then everything is okay, it's working for me by the way. Maybe try to put it into the script.


Re: wasted style is not showing - JeaSon - 21.08.2015

nope didnt worked used it as fs