22.01.2010, 22:55
Hey,
I'm going to keep this post simple and informative, this script took a long time to make and I mainly created it to kind of improve my skills. I made a version of this involving 16 odd textdraws, but then Don Correlli told me about formatting textdraws. This uses 3 textdraws, 2 per player ones.

Functions
Bugs
At the moment, there are no bugs I know of, I have also only tested this with 2 people, please don't be to harsh, I try at least. Report any you do find, also if you have any suggestions i'm willing to listen and possibly implement.
Download
The include.

An example usage script, not perfect, just a quicky, not reccomended you merge it with anything.


Credits
Adam Chaprnka- A great friend and helps me a lot, with anything.
Reece Guest- Also a great friend, thanks for testing this with me.
Don Correlli - A little bit of advice about this.
I intend to update this, and add pictures, I have a massive headache though at the moment.
I'm going to keep this post simple and informative, this script took a long time to make and I mainly created it to kind of improve my skills. I made a version of this involving 16 odd textdraws, but then Don Correlli told me about formatting textdraws. This uses 3 textdraws, 2 per player ones.

Functions
Код:
PlayerButtonMode(playerid, mode); -- 1 for browsing phones menus, 2 for browsing buttons. SetPhoneScreenText(playerid, option, string[], null); -- Set the 3 rows on the phone screen to your chosen text. ShowPhoneForPlayer(playerid); -- Shows the phone for a player. HidePhoneForPlayer(playerid); -- Hides the phone for a player. PhoneRestoreDefaults(playerid); -- Restores default variables, some are automatically done in Show/Hide. AddPhoneMenu(title[]); -- Used in OnGameModeInit() adds menus to the phone, maximum of 10. Put them in order you want them to be in the phone. OnPlayerSelectedPhoneMenuRow(playerid, rowid); -- When a player selects a row. OnPlayerSelectedPhoneKey(playerid, key); -- When a player selects a key. OnPhoneShown(playerid); -- When the phone is shown. OnPhoneHidden(playerid); -- When the phone is hidden.
At the moment, there are no bugs I know of, I have also only tested this with 2 people, please don't be to harsh, I try at least. Report any you do find, also if you have any suggestions i'm willing to listen and possibly implement.
Download
The include.

An example usage script, not perfect, just a quicky, not reccomended you merge it with anything.


Credits
Adam Chaprnka- A great friend and helps me a lot, with anything.
Reece Guest- Also a great friend, thanks for testing this with me.
Don Correlli - A little bit of advice about this.
I intend to update this, and add pictures, I have a massive headache though at the moment.