help command not work - 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: help command not work (
/showthread.php?tid=146850)
help command not work -
iJumbo - 09.05.2010
no error but in game not show a 3d text :/
Код:
if(strcmp(cmdtext, "/admin_on", true) == 0) {
if(IsPlayerAdmin(playerid))
label[playerid] = Create3DTextLabel(">>>ADMIN<<<",0x33CCFFAA,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
Re: help command not work -
iJumbo - 09.05.2010
any 1?
Re: help command not work -
Jefff - 09.05.2010
U dont see Attach3DTextLabelToPlayer but other players
Re: help command not work -
iJumbo - 09.05.2010
and how to show for me? and all
Re: help command not work -
Killa_ - 09.05.2010
Quote:
Originally Posted by gigi1223
and how to show for me? and all
|
Impossible to see your own 3d text label, only others see it
Re: help command not work -
iJumbo - 09.05.2010
are you sure?
Re: help command not work -
Jefff - 09.05.2010
U can use something like this but i dont think its a good way xD
Код:
if(!strcmp(cmdtext, "/admin_on", true) && IsPlayerAdmin(playerid)) {
return Attach(playerid);
}
forward Attach(p);
public Attach(p)
{
new Float:Pos[3];
if(IsPlayerConnected(p)) {
GetPlayerPos(p,Pos[0],Pos[1],Pos[2]);
Delete3DTextLabel(label[p]);
label[p] = Create3DTextLabel(">>>ADMIN<<<",0x33CCFFAA,Pos[0],Pos[1],Pos[2]+1.0,40.0,0);
}else return Delete3DTextLabel(label[p]),true;
SetTimerEx("Attach",500,false,"d",p);
return 0;
}