SA-MP Forums Archive
[Include] [INC] GTA-IV Phone Include [3 Textdraws] - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] GTA-IV Phone Include [3 Textdraws] (/showthread.php?tid=122656)

Pages: 1 2


[INC] GTA-IV Phone Include [3 Textdraws] - NeRoSiS - 22.01.2010

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.



Re: [INC] GTA-IV Phone Include [3 Textdraws] - [NYRP]Mike. - 23.01.2010

Maybe some screens? could be useful


Re: [INC] GTA-IV Phone Include [3 Textdraws] - NeRoSiS - 23.01.2010

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!


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Jbosh123 - 23.01.2010

: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


Re: [INC] GTA-IV Phone Include [3 Textdraws] - armyoftwo - 23.01.2010

Here are the screens

HERE!


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Spear - 23.01.2010

nice =)


Re: [INC] GTA-IV Phone Include [3 Textdraws] - RenisiL - 23.01.2010

Very nice good job


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Mr L - 23.01.2010

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


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Correlli - 23.01.2010

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


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Mr L - 23.01.2010

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


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Correlli - 23.01.2010

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


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Mr L - 23.01.2010

dont upload it man its very good Script


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Correlli - 23.01.2010

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


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Mr L - 23.01.2010

but on this phone script can you call someone?


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Correlli - 23.01.2010

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.


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Mr L - 23.01.2010

can you check it and tell me?


Re: [INC] GTA-IV Phone Include [3 Textdraws] - Correlli - 23.01.2010

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


Re: [INC] GTA-IV Phone Include [3 Textdraws] - armyoftwo - 23.01.2010

you can script the calling by yourself...



Re: [INC] GTA-IV Phone Include [3 Textdraws] - Mr L - 23.01.2010

oh ok and btw Thank for the help


Re: [INC] GTA-IV Phone Include [3 Textdraws] - NeRoSiS - 23.01.2010

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.