Little Help
#1

Never worked with this stuff before..
Can someone just show me proper way of creating 3Dtext label when player shot?
Reply
#2

Hello there,

For a system that acts like a damage indicator, see: https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
For 3D text labels attached to the player that gets shot, see: https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
For 3D text labels as is, see: https://sampwiki.blast.hk/wiki/Create3DTextLabel

Callback to use: https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage or https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
Reply
#3

kay hold your laugh
I tried that: :P

But it's not showing the lable
Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
	new Float: X, Float: Y, Float: Z;
	GetPlayerPos(playerid, X,Y,Z);
	if (GetPlayerState(playerid) == 1 || GetPlayerState(playerid) == 2 || GetPlayerState(playerid) == 3)
	{
		if(GetPlayerWeapon(playerid) == 22)
		{
		    if(PRESSED(KEY_FIRE) && HasRecentlyShoot[playerid] == 0)
		    {
		        HasRecentlyShoot[playerid] = 1;
				BulletShell = Create3DTextLabel("Test Label", -1, X,Y,Z, 5.0, GetPlayerVirtualWorld(playerid), 0);
				SetTimerEx("ResetShootTimer", 5000, false, "i", playerid);
			}
		}
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)