#1

How to make the such:
When press on ESC it is written from above NICK that is in ESC?
Reply
#2

Just OnPlayerKeyAction then put a print function and see what it says the key is then make your own function with that
Reply
#3

Quote:
Originally Posted by ScottCFR
Just OnPlayerKeyAction then put a print function and see what it says the key is then make your own function with that
Yet again, facts wrong.

1) The key change callback is actually OnPlayerKeyStateChange.
2) OnPlayerKeyStateChange doesn't record the ESC key.

OnPlayerUpdate stops calling if a player tabs out, a way would be to set a timer every time that OnPlayerUpdate is called and then if it's not repeated - then use your code to SetPlayerName.
Reply
#4

Quote:
Originally Posted by FreddoX [BINMAN
]
Quote:
Originally Posted by ScottCFR
Just OnPlayerKeyAction then put a print function and see what it says the key is then make your own function with that
Yet again, facts wrong.

1) The key change callback is actually OnPlayerKeyStateChange.
2) OnPlayerKeyStateChange doesn't record the ESC key.

OnPlayerUpdate stops calling if a player tabs out, a way would be to set a timer every time that OnPlayerUpdate is called and then if it's not repeated - then use your code to SetPlayerName.
Now i'm curious, can you do an example please?
Reply
#5

Quote:
Originally Posted by russooooo
Quote:
Originally Posted by FreddoX [BINMAN
]
Quote:
Originally Posted by ScottCFR
Just OnPlayerKeyAction then put a print function and see what it says the key is then make your own function with that
Yet again, facts wrong.

1) The key change callback is actually OnPlayerKeyStateChange.
2) OnPlayerKeyStateChange doesn't record the ESC key.

OnPlayerUpdate stops calling if a player tabs out, a way would be to set a timer every time that OnPlayerUpdate is called and then if it's not repeated - then use your code to SetPlayerName.
Now i'm curious, can you do an example please?
I could, but I can't really be bothered.

Take a look at this: http://forum.sa-mp.com/index.php?topic=78166.0
Reply
#6

Quote:
Originally Posted by FreddoX [BINMAN
]
Quote:
Originally Posted by russooooo
Quote:
Originally Posted by FreddoX [BINMAN
]
Quote:
Originally Posted by ScottCFR
Just OnPlayerKeyAction then put a print function and see what it says the key is then make your own function with that
Yet again, facts wrong.

1) The key change callback is actually OnPlayerKeyStateChange.
2) OnPlayerKeyStateChange doesn't record the ESC key.

OnPlayerUpdate stops calling if a player tabs out, a way would be to set a timer every time that OnPlayerUpdate is called and then if it's not repeated - then use your code to SetPlayerName.
Now i'm curious, can you do an example please?
I could, but I can't really be bothered.

Take a look at this: http://forum.sa-mp.com/index.php?topic=78166.0
Ok, no prob. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)