[Include] [INC] GTA-IV Phone Include [3 Textdraws]
#1

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

Код:
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.
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.
Reply
#2

Maybe some screens? could be useful
Reply
#3

Quote:
Originally Posted by TheUnknownOne[1337
]
Maybe some screens? could be useful
I'll do them tommorrow, have a migraine/headache, can't sleep either, fail.

If anybody does use this, please, post your opinion!
Reply
#4

:O Nice work - Better be first to congratulate you xD
Congratulations.

Anyways xD Ive been playing GTA IV alot lately, Maybe you could add some default menus to it?
Could add a Function at the bottom menu ( Detonate Bomb )
And people do /plantbomb at a vehicle and it puts the bomb on the vehicle.

Thats probably be done, But it sounds cool.

Anyways Good Job
Reply
#5

Here are the screens

HERE!
Reply
#6

nice =)
Reply
#7

Very nice good job
Reply
#8

shit its amazing Thank you very much!! , but with this cellphone i can call someone? like /call [number]
Reply
#9

I see you've decided to release it, not bad, but it could be better.
Reply
#10

Don i hear that you created it too that is true or no?
Reply
#11

Quote:
Originally Posted by Kinto
Don i hear that you created it too that is true or no?
Yeah, a long time ago - http://forum.sa-mp.com/index.php?topic=130624.0
Reply
#12

dont upload it man its very good Script
Reply
#13

Quote:
Originally Posted by Kinto
dont upload it man its very good Script
Indeed i won't.
Reply
#14

but on this phone script can you call someone?
Reply
#15

Quote:
Originally Posted by Kinto
but on this phone script can you call someone?
You can on mine, but i haven't checked if you can on Wazza's.
Reply
#16

can you check it and tell me?
Reply
#17

Quote:
Originally Posted by Kinto
can you check it and tell me?
No, you can't.
Reply
#18

you can script the calling by yourself...
Reply
#19

oh ok and btw Thank for the help
Reply
#20

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Kinto
but on this phone script can you call someone?
You can on mine, but i haven't checked if you can on Wazza's.
Mines an include, you have to merge it with your gamemode, I made it this way so people who run roleplay servers can easily add this in. Yes it could be better, but I don't use it anymore, I scripted it purely to see if I could, if you could name a few ways it could be better i'd appreciate it, I just want to learn from my mistakes

Thank you for the screens aswell Godfather, it's appreciated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)