TogglePlayerControllable
#1

I know that someone mention something about it in SA-MP 0.3z RC topic, but I doubt ,that someone saw that. Basically, since I got my custom damages in gamemode, it should damage players that are frozen, but it takes health off them only with fists, no different weapon. Is it possible to fix? Probably OnPlayerTakeDamage is not being called, I didn't checked that, sorry I just forgot, and I can't do it right now, because I am off to the College. Basically, when you change status of Controllable to '1' player won't be able to move, but he also won't be able to kill, only fists are working. Possible to fix? or maybe instead of that, just make player killable with that function?

That is useful (eg.: A/W/S/D keys to navigate menu), but players are using advantage of that function, like someone is shooting you, and they'll enter Controllable mode '1' and they won't be able to kill.

Suggestion to fix that:
pawn Код:
native TogglePlayerControllable(playerid, bool:set, bool:killable);
or just make them killable by default. But still, I rather above fix. Thanks!
Reply
#2

It is a good idea.
Or at least OnPlayerTake/GiveDamage should detect the frozen players too.
Reply
#3

just throwing my opinion in here, it's minor but while they're adjusting the toggleplayercontrollable maybe allow for a bool to leave the camera controllable.
Reply
#4

I've also noticed the same problem when I was updating my L_Skills include. As a temporary fix, you could use OnPlayerGiveDamage on players who are frozen so that the custom damages could be applied.
Reply
#5

TogglePlayerControllable doesn't garantize you that the player can be killed or not. If you want the player to be invulnerable you should use OnPlayerWeaponShot returning 0 and GiveDamage/TakeDamage for punches, explosions, etc. This doesn't require a fix, because it's possible by scripting, as I always say, programming is much harder than scripting.
Reply
#6

Quote:
Originally Posted by MugiwaraNoLuffy
Посмотреть сообщение
TogglePlayerControllable doesn't garantize you that the player can be killed or not. If you want the player to be invulnerable you should use OnPlayerWeaponShot returning 0 and GiveDamage/TakeDamage for punches, explosions, etc. This doesn't require a fix, because it's possible by scripting, as I always say, programming is much harder than scripting.
Programming is not harder than scripting, IMO programming is easier. Reverse engineering the game is more difficult though IMO. I believe sa-mp is written in C/C++, and pawn code is VERY similar to C syntax.

What exactly do you find so much more difficult about writing C++ code than pawn code? You seem so certain that it is "much harder".

For the sa-mp developers, I don't think the issue is in the difficulty of programming it, but in finding the time and/or motivation to do it.
Reply
#7

Quote:
Originally Posted by MugiwaraNoLuffy
Посмотреть сообщение
TogglePlayerControllable doesn't garantize you that the player can be killed or not. If you want the player to be invulnerable you should use OnPlayerWeaponShot returning 0 and GiveDamage/TakeDamage for punches, explosions, etc. This doesn't require a fix, because it's possible by scripting, as I always say, programming is much harder than scripting.
What? That's the point, I don't want player to be invincible, I want him to be killable. As I said, and it should actually work, I have a custom damages in my gamemode, where player is receiving damage from other player ONLY if the issuerid is using fists, no guns. There's no need to check it for OnPlayerWeaponShot, because why would I have to do the same thing twice? huh.. and stop saying "programming is much harder than scripting", because you're just wrong. If you know what you're doing, nothing is hard. Sit down and do it.

Quote:
Originally Posted by gtaplayer1
Посмотреть сообщение
[...]For the sa-mp developers, I don't think the issue is in the difficulty of programming it, but in finding the time and/or motivation to do it.
Well.. one day, there'll be more developer(s) than one. We just have to wait, because I don't believe that Kye will be doing SA-MP until he dies. He might not have time, because we're all people, and he is a "One many army". Should appreciate any fixes and addons we receive from him. We should be happy that we can play here all together and also be happy that we can choose between few multiplayers.
Reply
#8

Quote:
Originally Posted by gtaplayer1
Посмотреть сообщение
Programming is not harder than scripting, IMO programming is easier. Reverse engineering the game is more difficult though IMO. I believe sa-mp is written in C/C++, and pawn code is VERY similar to C syntax.

What exactly do you find so much more difficult about writing C++ code than pawn code? You seem so certain that it is "much harder".

For the sa-mp developers, I don't think the issue is in the difficulty of programming it, but in finding the time and/or motivation to do it.
I think you're right, but it doesn't depend of us, it depends of Kalcor. I think just like you, but SA-MP is free and people can't complain about anything, some people I know got banned for saying the truth. I have just said what ****** said some times, you can see it in fixes.inc post what I mean. Maybe implementing fixes in the source code is harder, maybe it's not.
Reply
#9

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
...


Well.. one day, there'll be more developer(s) than one. We just have to wait, because I don't believe that Kye will be doing SA-MP until he dies. He might not have time, because we're all people, and he is a "One many army". Should appreciate any fixes and addons we receive from him. We should be happy that we can play here all together and also be happy that we can choose between few multiplayers.
I wasn't even complaining..

Quote:
Originally Posted by MugiwaraNoLuffy
Посмотреть сообщение
I think you're right, but it doesn't depend of us, it depends of Kalcor. I think just like you, but SA-MP is free and people can't complain about anything, some people I know got banned for saying the truth. I have just said what ****** said some times, you can see it in fixes.inc post what I mean. Maybe implementing fixes in the source code is harder, maybe it's not.
Yes it is more work only because he needs to do a new release after he changes something.
Reply
#10

Quote:
Originally Posted by gtaplayer1
Посмотреть сообщение
I wasn't even complaining..
I quoted the right person, or I didn't.. let me check.. Yeah, I quoted the right person. My message wasn't pointed to you. Or you mean the second part of my message? Don't take it as being rude, I wasn't at all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)