Creating a Lobby [+REP] - 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)
+--- Thread: Creating a Lobby [+REP] (
/showthread.php?tid=560983)
Creating a Lobby [+REP] -
EgyptForLife - 31.01.2015
Hello everyone,
Well I wanna know how to create a lobby with example boxes and that each box stands for a gamemode and each one have specific slots.
For example :
Код:
___________ ___________
| | | [5/10] |
| [2/10] | | DD/DM |
| TDM | | Race |
|__________| |__________|
And you can click on them and enter the gamemode.
Thanks.
Note: There's a +REP for the person who help me
Re: Creating a Lobby [+REP] -
Schneider - 31.01.2015
It's up to you to create it yourself, but I can give you some functions that should get you on the way. Read their wiki's including their underlying pages.
- Create a
variable for each gamemode that holds the current amount of players
-
CreatePlayerTextdraw To create your lobby and the buttons.
-
PlayerTextDrawSetSelectable to make the buttons selectable.
-
PlayerTextDrawSetString to display the current amount of players in the gamemodes.
-
SelectTextdraw to display the cursor to the player, making him able to click the buttons.
-
OnPlayerClickPlayerTextDraw will be called when the player clicks one of the textdraws.
- Teleport the player to the desired location, increase the playercount-variable and hide the textdraws.
This should get you going I think..
Re: Creating a Lobby [+REP] -
HydraHumza - 31.01.2015
Brother u have to create yourself or we can help u if u show ur code or any idea no one create for u
P.S try to create yourself
Re: Creating a Lobby [+REP] -
EgyptForLife - 31.01.2015
Quote:
Originally Posted by Schneider
It's up to you to create it yourself, but I can give you some functions that should get you on the way. Read their wiki's including their underlying pages.
- Create a variable for each gamemode that holds the current amount of players
- CreatePlayerTextdraw To create your lobby and the buttons.
- PlayerTextDrawSetSelectable to make the buttons selectable.
- PlayerTextDrawSetString to display the current amount of players in the gamemodes.
- SelectTextdraw to display the cursor to the player, making him able to click the buttons.
- OnPlayerClickPlayerTextDraw will be called when the player clicks one of the textdraws.
- Teleport the player to the desired location, increase the playercount-variable and hide the textdraws.
This should get you going I think..
|
I know I have to do it myself, I just wanna know how. And ty
You helped. +REP!
Re: Creating a Lobby [+REP] -
Hwang - 20.10.2015
Lobby creating is easy work. I have lobby creating tutorial but not english, turkish.
My lobby mode download:
http://www.gtaturk.com/forum/Project...nmodu--246882/