possible?
#1

Hey guys. Got a question.
I want that when you spawn with one of these skin ids 288 280 281 282
You will get above your name LSP.
Is this possible and how? Please example or something
Reply
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(GetPlayerSkin(playerid) == 288 || GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 282)
  {
     new LSPLabel[MAX_PLAYERS];
     LSPLabel[playerid] = Create3DTextLabel("LSP",0x008080FF,30.0,40.0,50.0,40.0,0);
     Attach3DTextLabelToPlayer(LSPLabel[playerid], playerid, 0.0, 0.0, 0.3);
  }
}
Reply
#3

C:\Users\Bart\Desktop\samp server\gamemodes\bartmarc.pwn(1084) : warning 213: tag mismatch
C:\Users\Bart\Desktop\samp server\gamemodes\bartmarc.pwn(1085) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#4

Quote:
Originally Posted by bartje01
C:\Users\Bart\Desktop\samp server\gamemodes\bartmarc.pwn(1084) : warning 213: tag mismatch
C:\Users\Bart\Desktop\samp server\gamemodes\bartmarc.pwn(1085) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Which lines, because I can't find the error in the code I just gave it looks perfect :P
Reply
#5

You forgot to set the Text3D/PlayerText3D tag and LSPLabel array should be global.
Reply
#6

Quote:
Originally Posted by Don Correlli
You forgot to set the PlayerText3D tag.
This: https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel ?
Reply
#7

Lol. I watched that topic. Now I made it on my own :P Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)