The Textdraw of invenoty
#1

Hi all
i was created invenoty equipment when player press Y
But i don't know how to Add it and when press Y in-game it show for player
i want it like it
- 1 : It can contain item and weapons
- 2 : When Pickup item, it update in invenoty
sorry for my bad english ( i'm vietnamese )
anyone can help me ?
Reply
#2

To detect when player press Y, in this public:
Quote:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

You just need to check if the newkeys and KEY_YES are matched, then show the textdraw for player.

To update the inventory every time player clicks textdraw, just need to hide and show textdraw that needs updating.
Reply
#3

Quote:
Originally Posted by DuyDang2412
Посмотреть сообщение
To detect when player press Y, in this public:

You just need to check if the newkeys and KEY_YES are matched, then show the textdraw for player.

To update the inventory every time player clicks textdraw, just need to hide and show textdraw that needs updating.
Wow, i know, thanks
But how to add textdraw to game ? myfriend
Reply
#4

Use iPleomax's TextDraw Editor or TDEditor, create your textdraw then export it as a .pwn file, then just open it, copy the code and paste it in your public OnPlayerConnect(playerid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)