[FilterScript] Custom Player Nametags
#1

CUSTOM PLAYER NAMETAGS


This filterscript prevents the famous cleo nametag wallhacks, and also prevents FakeNick hacks(for fake screenshots/complaints) but doesn't prevent s0b*et nametag hacks

Download on Pastebin

NOTE:
  • Make sure to disable the default nametags in your gamemode!
    Place this under OnGameModeInit
    Code:
    ShowNameTags(0);
  • The dot characters don't work well with UTF-8.
    So if you ever encounter this bug

    Just use another encoding method in your text editor/IDE
    >> https://imgur.com/a/elRv1gn
Reply
#2

Looks good, but you don't destroy the label when player disconnects.
PHP Code:
if(armour 1.0
This will detect till 1 armour so your getarmourdot function wont work at 0 armor, make it like this
PHP Code:
if(armour 0.0
Reply
#3

nice, like the health and armor bar.

Ensure that the text labels destroy when player disconnect.
PHP Code:
public OnPlayerDisconnect(playerid)
{
    if(
IsValidDynamic3DTextLabel(cNametag[playerid]))
              
DestroyDynamic3DTextLabel(cNametag[playerid]);
    return 
1;

Reply
#4

Quote:
Originally Posted by StrikerZ
View Post
Looks good, but you don't destroy the label when player disconnects.
PHP Code:
if(armour 1.0
This will detect till 1 armour so your getarmourdot function wont work at 0 armor, make it like this
PHP Code:
if(armour 0.0
I did that on purpose so that the armour doesn't display when you don't have any(just like in the default nametags)

Quote:
Originally Posted by Debjit
View Post
nice, like the health and armor bar.

Ensure that the text labels destroy when player disconnect.
PHP Code:
public OnPlayerDisconnect(playerid)
{
    if(
IsValidDynamic3DTextLabel(cNametag[playerid]))
              
DestroyDynamic3DTextLabel(cNametag[playerid]);
    return 
1;

My bad. Thanks for reminding me!
Reply
#5

Quote:
Originally Posted by nnahtann
View Post
I did that on purpose so that the armour doesn't display when you don't have any(just like in the default nametags)
Nvm, I misread the code
Reply
#6

Some time I was looking for a similar FS, Good Work
Reply
#7

Maybe Sob force shows the old nametags? did you try setting a timer at OnFilterScriptInit that runs every 1 second to hide the nametags ShowNameTags(0); ? maybe that will terminate the cheat once and for all
Reply
#8

Quote:
Originally Posted by Eatmysmoke
View Post
Maybe Sob force shows the old nametags? did you try setting a timer at OnFilterScriptInit that runs every 1 second to hide the nametags ShowNameTags(0); ? maybe that will terminate the cheat once and for all
s0b*et also hides the default nametags and creates their own hacked ones.
ShowNameTags(0); every second still won't prevent the cheat.
Reply
#9

Quote:
Originally Posted by nnahtann
View Post
s0b*et also hides the default nametags and creates their own hacked ones.
ShowNameTags(0); every second still won't prevent the cheat.
Oh then that's sad, can't be detected with the current samp features this way.
Reply
#10

you finally released it sire nathan, +rep
Reply
#11

how to install it? plz







https://www.*******.com/channel/UCvG..._as=subscriber
Reply
#12

nice
Reply
#13

Quote:
Originally Posted by MrDDK
View Post
Copy the code inside the pastebin link and paste it into your text editor/pawno and compile it.
After compiling open your gamemode and place this under OnGameModeInit() :
Code:
ShowNameTags(0);
Upload your gamemode and the nametag filterscript to your server files and add the FS to server.cfg
Reply
#14

Amazing!!!!
Reply
#15

i am using https://ultra-h.com and i still don't know how to intall it lol

i mean is there is amx file & pwn file to download
Reply
#16

Quote:
Originally Posted by MrDDK
View Post
i am using https://ultra-h.com and i still don't know how to intall it lol

i mean is there is amx file & pwn file to download
the code in the pastebin link is the pwn code, you have to copy-paste them yourself to your text editor and compile it
Reply
#17

there is no text editor in https://ultra-h.com
lol
Reply
#18

help me fix it with?


code error :
Quote:

C:\Users\Administrator\Desktop\test\pawno\include\ YSI\y_iterate.inc(909) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Desktop\test\pawno\include\ YSI\y_iterate.inc(922) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#19

Reply
#20

Quote:
Originally Posted by Th3Tr0piKllaz
View Post
don't download the pastebin code, copy paste it into your pawn text editor and compile from there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)