open.mp forum
[Server] Nametag - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Support (https://forum.open.mp/forumdisplay.php?fid=12)
--- Thread: [Server] Nametag (/showthread.php?tid=2017)



Nametag - Uzzy - 2021-05-14

Hello, when someone shoots, I want it written on it (fired) how do I do it?

(SHOTS FRIED)


RE: Nametag - Radical - 2021-05-15

https://open.mp/docs/scripting/functions/SetPlayerChatBubble

Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
? ? SetPlayerChatBubble(playerid, "SHOTS FIRED", 0xFF0000FF, 50.0, 8000);
? ? return 1;
}