Hey guys,
I'd like to make a a textdraw for a certain amount of players.
Hum, as example, there's a /creategame CMD.
when a player uses /joingame it'll display a black textdraw box with a list of all players that join.
E.G:
There are 3 players in the server.
SAMP_FORUM uses /creategame -> a textdraw is created in the right side of the screen.
~w~Game~n~
_ INFO GOES HERE _
The INFO_GOES_HERE Gets updated when a player uses /joingame GameHosterID and it'll be like
~w~Game~n~
-> SAMP_USER~n~
-> USER_2
My question is how can I make this work? I have no idea on how to start this. How can I create a textdraw for a user that uses /joingame ID with the information(that gets updated live) of the hoster ID's game?
+REPing the helpers
I thought about making an array
Games[MAX_PLAYERS][Game_Info]
GameInfo should include the textdraw definition and a true/false whether a game is active.
when a user uses /creategame it sets the textdraw to active and whenever a player uses /joingame ID it shows the Games[i] (i = host ID) for the player and I should update it with strcat.
I'm getting really confused with how to do that, TIPS PLEASE
+REPing
I'd like to make a a textdraw for a certain amount of players.
Hum, as example, there's a /creategame CMD.
when a player uses /joingame it'll display a black textdraw box with a list of all players that join.
E.G:
There are 3 players in the server.
SAMP_FORUM uses /creategame -> a textdraw is created in the right side of the screen.
~w~Game~n~
_ INFO GOES HERE _
The INFO_GOES_HERE Gets updated when a player uses /joingame GameHosterID and it'll be like
~w~Game~n~
-> SAMP_USER~n~
-> USER_2
My question is how can I make this work? I have no idea on how to start this. How can I create a textdraw for a user that uses /joingame ID with the information(that gets updated live) of the hoster ID's game?
+REPing the helpers
I thought about making an array
Games[MAX_PLAYERS][Game_Info]
GameInfo should include the textdraw definition and a true/false whether a game is active.
when a user uses /creategame it sets the textdraw to active and whenever a player uses /joingame ID it shows the Games[i] (i = host ID) for the player and I should update it with strcat.
I'm getting really confused with how to do that, TIPS PLEASE
+REPing