Skip to content

Instantly share code, notes, and snippets.

@ohmypxl
Last active August 31, 2022 07:22
Show Gist options
  • Save ohmypxl/47866914713a0db5c7ac40f08f6c9afb to your computer and use it in GitHub Desktop.
Save ohmypxl/47866914713a0db5c7ac40f08f6c9afb to your computer and use it in GitHub Desktop.
Nametag function with beautiful for() codes
void:TogglePlayerNameTag(playerid, bool:toggle)
{
for (
new
targetid = 0,
maxPlayers = GetMaxPlayers();
/* if (*/targetid < maxPlayers;/*) */
ShowPlayerNameTagForPlayer(
playerid,
targetid ++,
toggle
)
) {/* NOP */}
}
@ohmypxl
Copy link
Author

ohmypxl commented Aug 31, 2022

NOTE: I dont think you can use this because im creating it for artwork purposes and doesn't even fully tested to be real code. Please don't report to me when you have bugs kthxbye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment