SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 18/03/2018, 08:07 AM   #1
nnahtann
Little Clucker
 
nnahtann's Avatar
 
Join Date: Sep 2017
Location: ml-rp.com
Posts: 43
Reputation: 20
Default Custom Player Nametags

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:
before using this filterscript, make sure default nametags are disabled
Place this under OnGameModeInit
Code:
ShowNameTags(0);
__________________

Last edited by nnahtann; 19/03/2018 at 10:47 AM.
nnahtann is offline   Reply With Quote
Old 18/03/2018, 08:36 AM   #2
StrikerZ
High-roller
 
StrikerZ's Avatar
 
Join Date: Mar 2016
Location: India
Posts: 1,123
Reputation: 154
Default Re: Custom Player Nametags

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
__________________
StrikerZ is offline   Reply With Quote
Old 18/03/2018, 08:36 AM   #3
Zeth
Huge Clucker
 
Zeth's Avatar
 
Join Date: Feb 2017
Location: India
Posts: 480
Reputation: 90
Default Re: Custom Player Nametags

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;

__________________
Zeth is offline   Reply With Quote
Old 18/03/2018, 08:47 AM   #4
nnahtann
Little Clucker
 
nnahtann's Avatar
 
Join Date: Sep 2017
Location: ml-rp.com
Posts: 43
Reputation: 20
Default Re: Custom Player Nametags

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!
__________________
nnahtann is offline   Reply With Quote
Old 18/03/2018, 09:13 AM   #5
StrikerZ
High-roller
 
StrikerZ's Avatar
 
Join Date: Mar 2016
Location: India
Posts: 1,123
Reputation: 154
Default Re: Custom Player Nametags

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
__________________
StrikerZ is offline   Reply With Quote
Old 18/03/2018, 09:46 AM   #6
HostedPlayerss
Little Clucker
 
HostedPlayerss's Avatar
 
Join Date: Feb 2017
Posts: 32
Reputation: 4
Default Re: Custom Player Nametags

Some time I was looking for a similar FS, Good Work
__________________
HostedPlayerss is offline   Reply With Quote
Old 19/03/2018, 11:08 AM   #7
Eatmysmoke
Little Clucker
 
Eatmysmoke's Avatar
 
Join Date: Jun 2014
Posts: 9
Reputation: 13
Default Re: Custom Player Nametags

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
__________________
Eatmysmoke is offline   Reply With Quote
Old 19/03/2018, 11:15 AM   #8
nnahtann
Little Clucker
 
nnahtann's Avatar
 
Join Date: Sep 2017
Location: ml-rp.com
Posts: 43
Reputation: 20
Default Re: Custom Player Nametags

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.
__________________
nnahtann is offline   Reply With Quote
Old 19/03/2018, 11:22 AM   #9
Eatmysmoke
Little Clucker
 
Eatmysmoke's Avatar
 
Join Date: Jun 2014
Posts: 9
Reputation: 13
Unhappy Re: Custom Player Nametags

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.
__________________
Eatmysmoke is offline   Reply With Quote
Old 19/03/2018, 12:56 PM   #10
SeanDenZYR
Big Clucker
 
Join Date: May 2016
Location: Philippines!!
Posts: 169
Reputation: 20
Default Re: Custom Player Nametags

you finally released it sire nathan, +rep
SeanDenZYR is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Scripts . Error NameTags Player !! nguyendinhdat Scripting Help 11 01/02/2018 01:45 PM
Trying to make player nametags hide when they're crouched. rangerxxll Scripting Help 7 23/10/2015 08:37 AM
Custom player id Brandlax Scripting Help 2 15/11/2012 05:31 PM
See if a player is using our CUSTOM.IMG? TheSpaggiari Scripting Help 4 04/02/2012 06:53 PM


All times are GMT. The time now is 02:40 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.