SA-MP Forums

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

Thread Tools Display Modes
Old 25/07/2009, 08:57 PM   #1
Big Clucker
Join Date: Aug 2008
Posts: 144
Reputation: 0
Default Keyboard commands assistance please.

So .. I've read almost everything I could until I was blue in the face about this key story.. basically I'm wanting to create something that when someone presses their up key, it sends them a message saying "Woop woop", can some one assist me and tell me where I'm going wrong:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
	if(newkeys == KEY_UP)
	SendClientMessage(playerid, COLOR_YELLOW, "Woop Woop");
Thanks in advanced!
Paladin is offline  
Old 25/07/2009, 09:52 PM   #2
Big Clucker
Join Date: Jul 2009
Posts: 89
Reputation: 0
Default Re: Keyboard commands assistance please.

The direction keys aren't detected because they are pressed almost constantly by players, producing too much data to be sent from clients and too much work for this server callback. So there is the function GetPlayerKeys.
paytas is offline  

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need economic assistance nesty Help Archive 12 07/02/2010 06:35 AM
I need assistance with moving objects, plizz turky Help Archive 1 10/12/2009 10:36 PM
its possible to use commands on keyboard controls? talsk8 Help Archive 1 27/08/2009 09:20 AM
May i have some assistance CrimescenesCapo General 3 05/12/2008 09:14 PM

All times are GMT. The time now is 08:41 PM.

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