SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 25/03/2012, 06:13 PM   #1
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,236
Reputation: 1004
Default GetPlayerTargetPlayer...

Can it please be fixed to work for controllers? Kalcor said it DOES work for controllers, but it does not.

[ame]http://www.youtube.com/watch?v=5rYNvbC0U7s[/ame]

I reported this in 0.3d, but it was never fixed.
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Old 25/03/2012, 06:42 PM   #2
Nanory
Big Clucker
 
Nanory's Avatar
 
Join Date: Feb 2009
Posts: 118
Reputation: 12
Default Re: GetPlayerTargetPlayer...

Hm, but for other player it's good that GetPlayerTargetPlayer doesn't work with Joypad.
I'm able to detect Joypadder, when they try to shoot someone, because GetPlayerTargetPlayer returns 65356 (or something like this) and i can kick this clients.
__________________

Life of German
German Reallife since 2008
Nanory is offline   Reply With Quote
Old 25/03/2012, 07:43 PM   #3
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,236
Reputation: 1004
Default Re: GetPlayerTargetPlayer...

Why would you want to kick joypad users? Many people use them. You're just killing your player-base doing that. Joypad users have a major disadvantage when shooting on foot, because when someone shoots NEAR them, it locks on to them, and when they lock on to someone, because of lag, it has no effect. So what's the problem? Joypad users have an advantage in vehicles and a disadvantage on foot, and keyboard users have an advantage on foot and a disadvantage in vehicles. It's fair.
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Old 25/03/2012, 09:01 PM   #4
CyNiC
High-roller
 
Join Date: Jan 2009
Location: Brazil
Posts: 1,420
Reputation: 203
Default Re: GetPlayerTargetPlayer...

Though I like this issue for prevent joypaders, doesn't matter what the people can make exploring a bug, probabbly it will be fixed.
__________________
My scripts
Brazucas'Server
CyNiC is offline   Reply With Quote
Old 25/03/2012, 09:06 PM   #5
Whitetiger
Huge Clucker
 
Whitetiger's Avatar
 
Join Date: Nov 2007
Posts: 406
Reputation: 156
Default Re: GetPlayerTargetPlayer...

you would want to kick joypadders because if you use OnPlayerGiveDamage for skin hit sync, joypadders would have an aimbot, using a joypad in vehicle wouldn't mess up with GetPlayerTargetPlayer so you can still use it in a vehicle
__________________
GitHub

Author of SA-MP AC

Whitetiger is offline   Reply With Quote
Old 25/03/2012, 10:24 PM   #6
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,236
Reputation: 1004
Default Re: GetPlayerTargetPlayer...

I guess so. This should be fixed regardless, and IsPlayerUsingJoypad added.
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Old 26/03/2012, 12:49 AM   #7
Snipa
Banned
 
Join Date: May 2010
Posts: 807
Reputation: 115
Default Re: GetPlayerTargetPlayer...

Quote:
Originally Posted by MP2 View Post
Joypad users have an advantage in vehicles and a disadvantage on foot, and keyboard users have an advantage on foot and a disadvantage in vehicles. It's fair.
I'll sound retarded, but I'll say it anyways:

How do they have an advantage?
Snipa is offline   Reply With Quote
Old 26/03/2012, 01:46 AM   #8
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,236
Reputation: 1004
Default Re: GetPlayerTargetPlayer...

In vehicles? Well it's actually quite biased. I can not play with a keyboard. I just can't do it. I crash in to everything. Fancy a race? Joypad vs keyboard?
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Old 26/03/2012, 12:20 PM   #9
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,052
Reputation: 205
Default Re: GetPlayerTargetPlayer...

I like both keyboard and joypad(I enjoy it )
Bug confirmed, and hope it will be fixed
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 26/03/2012, 12:35 PM   #10
Ultrascipter
Big Clucker
 
Join Date: Mar 2012
Posts: 58
Reputation: 2
Default Re : GetPlayerTargetPlayer...

Confirmed.
Ultrascipter 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 06:56 PM.


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