SA-MP Forums Archive
V.I.P Tag - 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: V.I.P Tag (/showthread.php?tid=404986)



V.I.P Tag - CBCandyBoy - 05.01.2013

hello everyone i made a command named as vip tag but the tag is not showing all things are working client messages are working but .............

pawn Код:
CMD:viptag(playerid,params[]) {
  if(PlayerInfo[playerid][Level] == 1 || IsPlayerAdmin(playerid)) {
    new Text3D:label;
    label = Create3DTextLabel("V.I.P member", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    return SendClientMessage(playerid, 0x008080FF, "VIP Tag added");
    } else return SendClientMessage(playerid, red, "ERROR:You Need to be VIP to use this command");
 }
i want the tag to be abhove the head of the player

please reply


Re: V.I.P Tag - ThePhenix - 05.01.2013

Hmm.. Let's say you want something like this:

EDIT:

PHP код:
CMD:viptag(playerid,params[])
{
  if(
PlayerInfo[playerid][Level] == || IsPlayerAdmin(playerid)) return SendClientMessage(playeridred"ERROR:You Need to be VIP to use this command");
  {
    new 
Text3D:label;
    
label Create3DTextLabel("V.I.P member"0x008080FF30.040.050.040.00);
    
Attach3DTextLabelToPlayer(labelplayerid0.00.00.7);
     
SendClientMessage(playerid0x008080FF"VIP Tag added");
    }
    return 
1;




Re: V.I.P Tag - CBCandyBoy - 05.01.2013

i want that a tag of 3d text label appears abhove the head of player vip member


Re: V.I.P Tag - ThePhenix - 05.01.2013

It should work:
PHP код:
CMD:viptag(playerid,params[])
{
  if(
PlayerInfo[playerid][Level] == || IsPlayerAdmin(playerid)) return SendClientMessage(playeridred"ERROR:You Need to be VIP to use this command");
  {
    new 
Text3D:label;
    
label Create3DTextLabel("V.I.P member"0x008080FF30.040.050.040.00);
    
Attach3DTextLabelToPlayer(labelplayerid0.00.00.7);
     
SendClientMessage(playerid0x008080FF"VIP Tag added");
    }
    return 
1;




Re: V.I.P Tag - CBCandyBoy - 05.01.2013

thx for help man but that helped but i took that from xvip +Rep to u


Re: V.I.P Tag - dr.lozer - 05.01.2013

pawn Код:
CMD:viptag(playerid,params[]) {
  #pragma unused params
  if(PlayerInfo[playerid][Level] == 1 || IsPlayerAdmin(playerid)) {
    new Text3D:label;
    label = Create3DTextLabel("V.I.P member", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    return SendClientMessage(playerid, 0x008080FF, "VIP Tag added");
    } else return SendClientMessage(playerid, red, "ERROR:You Need to be VIP to use this command");
 }



Re: V.I.P Tag - CBCandyBoy - 05.01.2013

ok man fine that command it gives message also vip tag added but when i rotate my camera i cant see my tag over my head


Re: V.I.P Tag - dr.lozer - 08.01.2013

Quote:
Originally Posted by CBCandyBoy
Посмотреть сообщение
ok man fine that command it gives message also vip tag added but when i rotate my camera i cant see my tag over my head
no one cant see their tags on their head