SA-MP Forums Archive
3DTextLabel in System Death - 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: 3DTextLabel in System Death (/showthread.php?tid=501271)



3DTextLabel in System Death - Carxi - 17.03.2014

When one player death can i create one 3DTextLabel whit: Killer - Reason ?
Thank your for the future reply


Re: 3DTextLabel in System Death - BroZeus - 17.03.2014

You can use SendDeathMessage();
See ****** for its usage


Re: 3DTextLabel in System Death - Carxi - 17.03.2014

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
You can use SendDeathMessage();
See ****** for its usage
I know but for use SendDeathMessage i need to stay in the OnPlayerDeath, right?
But my script of death system isn't in the OnPlayerDeath


Re: 3DTextLabel in System Death - BroZeus - 17.03.2014

Quote:
Originally Posted by Carxi
Посмотреть сообщение
I know but for use SendDeathMessage i need to stay in the OnPlayerDeath, right?
But my script of death system isn't in the OnPlayerDeath
so whats it on?


Re: 3DTextLabel in System Death - Carxi - 17.03.2014

This is my script in OnProcessSpawn
Код:
SetCameraBehindPlayer(playerid);
				    SetPlayerPos(playerid,death_pos[playerid][0],death_pos[playerid][1],death_pos[playerid][2]);
				    SetPlayerFacingAngle(playerid,death_pos[playerid][3]);
				    SetPlayerInterior(playerid,death_stats[playerid][0]);
				    SetPlayerVirtualWorld(playerid,death_stats[playerid][1]);
				    SetPlayerSkin(playerid,death_stats[playerid][2]);
					GameTextForPlayer(playerid,"~r~Ferito!",5000,5);
            		SetTimerEx("SetDeathAnim", 1500, false, "i", playerid);
         			SendClientMessage(playerid,COLOR_LIGHTRED,"Sei stato ferito. Perderai sempre piщ HP almeno che un medico non arrivi.");
         			SendClientMessage(playerid,COLOR_LIGHTRED,"Puoi usare /accettamorte 2 minuti. Per fermare l'attesa.");
					SetPlayerHealth(playerid,50);
					death_hploss[playerid] = 60;
					death_cooldown[playerid] = 120;
					new rand = random(5)+1;
					switch(rand)
					{
			    	case 1: ApplyAnimation(playerid, "ped", "FLOOR_hit", 4.0, 0, 1, 1, 1, -1);
		        	case 2: ApplyAnimation(playerid, "ped", "FLOOR_hit_f", 4.0, 0, 1, 1, 1, -1);
		        	case 3: ApplyAnimation(playerid, "ped", "KO_shot_front", 4.0, 0, 1, 1, 1, -1);
		        	case 4: ApplyAnimation(playerid, "ped", "KO_shot_stom", 4.0, 0, 1, 1, 1, -1);
                	case 5: ApplyAnimation(playerid, "ped", "BIKE_fall_off", 4.0, 0, 1, 1, 1, -1);
			    	default: ApplyAnimation(playerid,"WUZI","CS_Dead_Guy",4.1,1,1,1,1,1,1);