possible? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: possible? (
/showthread.php?tid=130802)
possible? -
bartje01 - 28.02.2010
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
Re: possible? -
Eazy_Efolife - 28.02.2010
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);
}
}
Re: possible? -
bartje01 - 28.02.2010
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.
Re: possible? -
Eazy_Efolife - 28.02.2010
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
Re: possible? -
Correlli - 28.02.2010
You forgot to set the Text3D/PlayerText3D tag and LSPLabel array should be global.
Re: possible? -
Eazy_Efolife - 28.02.2010
Quote:
Originally Posted by Don Correlli
You forgot to set the PlayerText3D tag.
|
This:
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel ?
Re: possible? -
bartje01 - 28.02.2010
Lol. I watched that topic. Now I made it on my own :P Thanks