SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 01/07/2012, 06:35 PM   #1
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Freeze but with active keys

I make my own skin selection (without buttons like spawn etc.)
but when 0.3e was released i can't get any kay in OnPlayerKeyStateChange if player is freezed

Have some idea how to disable player moves without TogglePlayerControllable function?
__________________
sorry for my bad English
Terminator3 is offline   Reply With Quote
Old 01/07/2012, 07:13 PM   #2
LeOsk
Little Clucker
 
Join Date: Jul 2011
Posts: 31
Reputation: 1
Default AW: Freeze but with active keys

don't really know what you mean but with TogglePlayerControllable its not hard
Just write:
TogglePlayerControllable(playerid,0) so he can't move
and with 1 he can
LeOsk is offline   Reply With Quote
Old 01/07/2012, 07:19 PM   #3
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: Freeze but with active keys

But when i write this, enter the server and click something the OnPlayerKeyStateChange callback it's not called:/
__________________
sorry for my bad English
Terminator3 is offline   Reply With Quote
Old 01/07/2012, 07:23 PM   #4
LeOsk
Little Clucker
 
Join Date: Jul 2011
Posts: 31
Reputation: 1
Default AW: Freeze but with active keys

hmm then i don't know sry
LeOsk is offline   Reply With Quote
Old 02/07/2012, 08:16 AM   #5
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: AW: Freeze but with active keys

Quote:
Originally Posted by LeOsk View Post
hmm then i don't know sry
....
__________________
sorry for my bad English
Terminator3 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 01:46 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.