SA-MP Forums Archive
VIP 3D Text Label Shows For Anyone - 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: VIP 3D Text Label Shows For Anyone (/showthread.php?tid=526614)



VIP 3D Text Label Shows For Anyone - Youssef214 - 18.07.2014

Why The VIP Text Label Shows For Anyone Else Even VIP And Non-VIP Too?

I Show It When Player Spawns.

Codes:
pawn Код:
if(Info[playerid][VIPLevel] == 1 || Info[playerid][VIPLevel] == 2 || Info[playerid][VIPLevel] == 3)
    {
      VIPlabel[playerid] = Create3DTextLabel("VIP", 0xFFEE00FF, 30.0, 40.0, 50.0, 40.0, 0);
      Attach3DTextLabelToPlayer(VIPlabel[playerid], playerid, 0.0, 0.0, 0.7);
    }



Respuesta: VIP 3D Text Label Shows For Anyone - Xabi - 18.07.2014

Do you destroy the label when player disconnects? Also, are you sure the variable is loaded correctly? Maybe it takes from the previous player logged with the same id.


Re: VIP 3D Text Label Shows For Anyone - Miguel - 18.07.2014

What's the minimum VIP level? Is there any level representing non-VIP?


Re: VIP 3D Text Label Shows For Anyone - Youssef214 - 18.07.2014

Xabi: No I forgot To Destroy Label But It Shows To The Specific Player ID, And The Variable Is Loaded Correctly.

Miguel: Minimum VIP Level: 1, And I Represent Non-VIP As Normal Player (Or VIP Level 0).


Re: VIP 3D Text Label Shows For Anyone - AroseKhanNiazi - 18.07.2014

You need to destroy it when player leaves