Automatic open chat box
#1

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?
Reply
#2

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.
Reply
#3

Impossible.
Reply
#4

StartTyping(playerid); would be cool.
Reply
#5

Quote:
Originally Posted by Mikep
StartTyping(playerid); would be cool.
SendKeys(playerid); would be cool lol
Reply
#6

Well you can make them send commands or text with CallRemoteFunction/CallLocalFunction or SendPlayerMessageToAll
Reply
#7

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?
Reply
#8

CallLocalFunction("OnPlayerDeath", "ii", playerid,killerid,reason);

CallLocalFunction("OnPlayerDeath", "ii", 1,1,3;

Edited mike
Reply
#9

https://sampwiki.blast.hk/wiki/OnPlayerDeath

(playerid, killerid, reason)
Reply
#10

https://sampwiki.blast.hk/wiki/SpecialActions

11 - SPECIAL_ACTION_USECELLPHONE
13 - SPECIAL_ACTION_STOPUSECELLPHONE
Reply
#11

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); ?
Reply
#12

Try to do it with custom-made chatbox...
Reply
#13

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
Reply
#14

Learn C++/C# or pay to someone...
Reply
#15

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.
Reply
#16

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
Reply
#17

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.
Reply
#18

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
Reply
#19

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)