Questions regarding about 3DTextLabel - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Questions regarding about 3DTextLabel (
/showthread.php?tid=592386)
Questions regarding about 3DTextLabel -
JaKe Elite - 24.10.2015
I would like to know if i update the attached 3d text label to players every 2500 milesecond would affect the server's performance or the player's game.
I would also like to know if i placed "_" on the attached 3d text label, Would it crash the server's client?
That'd be all.
Information:
I am creating an admin/vip label system. To prevent using tons of codes (I am lazy), i decided to create the label onplayerconnect. The label then gets updated every 2500 mileseconds, Checking if the player is admin or vip, updating them to admin/vip label text. The label then gets destroyed OnPlayerDisconnect.
Re: Questions regarding about 3DTextLabel -
Dusan01 - 24.10.2015
You dont even need a timer, make a stock then when he connects call a stock to check what is he and update a label.
And there is just 1 more place to put that code that is when you give him admin/vip
Код:
stock UpdateStaffLabel(pid) {
if(PlayerInfo[pid][pAdmin] > 0) {
Update3DTextLabelText(YourLabel[pid], 0xFFFFFFFF, "Admin");
}
else if(PlayerInfo[pid][pVIP] > 0) {
Update3DTextLabelText(YourLabel[pid], 0xFFFFFFFF, "VIP");
}
return 1;
}
And _ Will not crash a client...
Re: Questions regarding about 3DTextLabel -
JaKe Elite - 24.10.2015
Thank you for clearing that out.
Re: Questions regarding about 3DTextLabel -
Dusan01 - 24.10.2015
Np bro