SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Русский/Russian

Reply
 
Thread Tools Display Modes
Old 10/10/2017, 07:04 PM   #1
Dreamerzzz
Big Clucker
 
Join Date: Jan 2013
Posts: 57
Reputation: 0
Default CreateDynamic3DTextLabel

Как сделать так, чтоб динамический 3Д ярлык был виден только определенным игрокам?
Функция такая:
Code:
CreateDynamic3DTextLabel("Командир", 0xffd80044, 0.0, 0.0, 3.0, 70.0, playerid, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
Dreamerzzz is offline   Reply With Quote
Old 10/10/2017, 07:05 PM   #2
White_116
High-roller
 
Join Date: Sep 2010
Location: Russia/116
Posts: 1,481
Reputation: 69
Default Re: CreateDynamic3DTextLabel

Просто
Quote:
interiorid = -1, playerid = -1, Floattreamdistance
__________________
White_116 is offline   Reply With Quote
Old 10/10/2017, 07:12 PM   #3
Dreamerzzz
Big Clucker
 
Join Date: Jan 2013
Posts: 57
Reputation: 0
Default Re: CreateDynamic3DTextLabel

Так это же параметр playerid, если она равен -1, то он его всем игрокам показывать?! А нужно, чтоб только определенным
Dreamerzzz is offline   Reply With Quote
Old 10/10/2017, 07:28 PM   #4
Eims
Huge Clucker
 
Eims's Avatar
 
Join Date: May 2013
Location: Восточный Мордор
Posts: 442
Reputation: 12
Default Re: CreateDynamic3DTextLabel

Quote:
Originally Posted by Dreamerzzz View Post
Так это же параметр playerid, если она равен -1, то он его всем игрокам показывать?! А нужно, чтоб только определенным
Указывай там INVALID_PLAYER_ID и после, когда нужно показать игроку, прописывай
PHP Code:
Streamer_AppendArrayData(STREAMER_TYPE_3D_TEXT_LABEL/*Переменная с ID 3d текста*/E_STREAMER_PLAYER_IDplayerid);
Streamer_Update(playeridSTREAMER_TYPE_3D_TEXT_LABEL); 
а когда скрыть -
PHP Code:
Streamer_RemoveArrayData(STREAMER_TYPE_3D_TEXT_LABEL/*Переменная с ID 3d текста*/E_STREAMER_PLAYER_IDplayerid);
Streamer_Update(playeridSTREAMER_TYPE_3D_TEXT_LABEL); 
Eims is offline   Reply With Quote
Old 10/10/2017, 07:52 PM   #5
stabker
High-roller
 
Join Date: Mar 2012
Posts: 1,320
Reputation: 86
Default Re: CreateDynamic3DTextLabel

CreateDynamic3DTextLabelEx
stabker is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CreateDynamic3DTextLabel Hellman92 Scripting Help 6 19/02/2016 05:53 PM
Help with CreateDynamic3DTextLabel Sc0pion Scripting Help 6 26/07/2015 01:07 PM
[Help]: CreateDynamic3DTextLabel BUG INKISICION Scripting Help 9 19/07/2015 11:58 PM
CreateDynamic3DTextLabel Xlithan Scripting Help 3 30/12/2012 02:45 PM


All times are GMT. The time now is 01:00 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.