Automatic open chat box -
Dujma - 12.03.2009
Is there any way to open chat box (T button) without pressing T button. I mean to script when player does something and chat box pops out. I was thinking of OnPlayerKeyStateChange but T button is not defined key. Any ideas how to do this and is it even possible?
Re: Automatic open chat box -
Dujma - 12.03.2009
Quote:
Originally Posted by Robert Graham
Why would you want that? You would be typing and not moving, AT ALL
|
If you want to know I needed for new cell phone system and it wont be moving.
Re: Automatic open chat box -
On_Top_Non_Stop - 12.03.2009
Impossible.
Re: Automatic open chat box -
Mikep - 12.03.2009
StartTyping(playerid); would be cool.
Re: Automatic open chat box -
ICECOLDKILLAK8 - 13.03.2009
Quote:
Originally Posted by Mikep
StartTyping(playerid); would be cool.
|
SendKeys(playerid); would be cool lol
Re: Automatic open chat box -
Mikep - 13.03.2009
Well you can make them send commands or text with CallRemoteFunction/CallLocalFunction or SendPlayerMessageToAll
Re: Automatic open chat box -
ICECOLDKILLAK8 - 13.03.2009
Quote:
Originally Posted by Mikep
Well you can make them send commands or text with CallRemoteFunction/CallLocalFunction or SendPlayerMessageToAll
|
So CallLocalFunction(OnPlayerDeath(1,1)); would say that id 1 killed himself?
Re: Automatic open chat box -
On_Top_Non_Stop - 13.03.2009
CallLocalFunction("OnPlayerDeath", "ii", playerid,killerid,reason);
CallLocalFunction("OnPlayerDeath", "ii", 1,1,3
;
Edited mike
Re: Automatic open chat box -
Mikep - 13.03.2009
https://sampwiki.blast.hk/wiki/OnPlayerDeath
(playerid, killerid, reason)
Re: Automatic open chat box -
Mikep - 13.03.2009
https://sampwiki.blast.hk/wiki/SpecialActions
11 - SPECIAL_ACTION_USECELLPHONE
13 - SPECIAL_ACTION_STOPUSECELLPHONE
Re: Automatic open chat box -
Backwardsman97 - 13.03.2009
Quote:
Originally Posted by JeNkStAX
Quote:
Originally Posted by Mikep
Well you can make them send commands or text with CallRemoteFunction/CallLocalFunction or SendPlayerMessageToAll
|
So CallLocalFunction(OnPlayerDeath(1,1)); would say that id 1 killed himself?
|
Why not just say OnPlayerDeath(1,1); ?
Re: Automatic open chat box -
Google63 - 13.03.2009
Try to do it with custom-made chatbox...
Re: Automatic open chat box -
Dujma - 13.03.2009
Quote:
Originally Posted by ******63
Try to do it with custom-made chatbox...
|
lol yea tnx for the tip I forgot about that xD
EDIT: Still I need to use SAMP chat box to be able to send something on my custom
Quote:
Originally Posted by On_Top_Non_Stop
Impossible.
|
It is with server side plugin. It would be based like some keybinder. But I dont know how to make plugins yet
Re: Automatic open chat box -
Google63 - 13.03.2009
Learn C++/C# or pay to someone...
Re: Automatic open chat box -
On_Top_Non_Stop - 13.03.2009
Quote:
Originally Posted by On_Top_Non_Stop
Impossible.
|
It is with server side plugin. It would be based like some keybinder. But I dont know how to make plugins yet
[/quote]
I know nothing about plugins :\ but what i was meaning was it's impossible without something like a plugin.
Re: Automatic open chat box -
MenaceX^ - 13.03.2009
Who says that you have to do it with T only? There're more keys for open the chat box.
this ` (Above TAB) and F6 in-game
Re: Automatic open chat box -
Norn - 13.03.2009
Quote:
Originally Posted by MenaceX^
Who says that you have to do it with T only? There're more keys for open the chat box.
this ` (Above TAB) and F6 in-game
|
Because what's the point of typing "hit f6 to use the phone", when you can just hit t.
Re: Automatic open chat box -
ICECOLDKILLAK8 - 13.03.2009
Quote:
Originally Posted by Norn
Quote:
Originally Posted by MenaceX^
Who says that you have to do it with T only? There're more keys for open the chat box.
this ` (Above TAB) and F6 in-game
|
Because what's the point of typing "hit f6 to use the phone", when you can just hit t.
|
I find it really hard to use T, Probably because i am so used to using ` lol
Re: Automatic open chat box -
Dujma - 13.03.2009
Quote:
Originally Posted by JeNkStAX
Quote:
Originally Posted by Norn
Quote:
Originally Posted by MenaceX^
Who says that you have to do it with T only? There're more keys for open the chat box.
this ` (Above TAB) and F6 in-game
|
Because what's the point of typing "hit f6 to use the phone", when you can just hit t.
|
I find it really hard to use T, Probably because i am so used to using ` lol
|
F keys are not defined in samp... Ok I will try to make same kind of server side key binder. Tnx for the answers