SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: Slice
Forum: Includes 08/02/2017, 08:43 AM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Show me your code, the debug logs alone are can not help me identify the issue.
Forum: Includes 15/10/2016, 11:04 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

That should not happen at all. You probably return 0 where you should not, or have an error in a callback.
Forum: Includes 15/10/2016, 01:23 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Explain to me how you wish to solve nr 1. If I would "fix" that, this bug would exist:
1. Can't kill someone with a high ping.
Forum: Includes 27/09/2016, 09:31 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

0.0 means all damage. This also means you can change "amount" to 0.0 to make the damage insta-kill.
Forum: Includes 25/09/2016, 07:38 PM
Replies: 73
Views: 17,728
Posted By Slice
Re: Textdraw Flags - Over 30 country flags

Maybe you should read the list of countries...
Forum: Includes 22/09/2016, 03:24 PM
Replies: 73
Views: 17,728
Posted By Slice
Re: Textdraw Flags - Over 30 country flags

Cheers! ;D My language selection just got a lift.

https://i.imgur.com/RF2PFDY.png
Forum: Includes 21/09/2016, 12:59 PM
Replies: 11
Views: 3,302
Posted By Slice
Re: inline-sort.inc - The solution to all your sorting needs

sortInline will sort an entire array. sortPartInline will sort part of an array, and sortPlayersInline is for the custom PlayerArray.

The reason you might want sortPartInline is if you have a...
Forum: Includes 19/09/2016, 10:18 AM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Don't use SetPlayerHealth in OnPlayerDamage...
Forum: Includes 18/09/2016, 10:48 AM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

That is because RemoveBuilding causes lag at 0, 0, 0. This include uses RemoveBuilding to remove vending machines. If you do not wish to have that functionality, you can so this:

#define...
Forum: Discussion 26/08/2016, 02:46 PM
Replies: 47
Views: 7,999
Posted By Slice
Re: Tiny But Super Optimizations

You do know the BREAK opcode is only generated when compiling with -d(1-3)? Telling people to use -d0 for production rather than make their code a giant mess is probably a good thing, it would also...
Forum: Includes 23/08/2016, 01:09 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Compile with "#define WC_DEBUG true" before including weapon-config.


Show me your OnPlayerDeath.
Forum: Includes 22/08/2016, 10:10 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Do you use custom fall damage? Do you use crashes.asi?

Install crashdetect (https://github.com/Zeex/samp-plugin-crashdetect/releases) to see more information about errors in the server.
Forum: Includes 22/08/2016, 10:08 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Show me your OnPlayerDamage function. Also your includes.
Forum: Includes 22/08/2016, 05:13 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

@airblog: 1. Remove the CallLocalFunction code. 2. Show me OnPlayerDamage. My first guess is you use "issuerid" before checking if it's INVALID_PLAYER_ID.

@ajwar: What other includes do you have?...
Forum: Includes 22/08/2016, 11:37 AM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Search your include files for OnPlayerGiveDamage. What do you find?
Forum: Includes 22/08/2016, 12:07 AM
Replies: 11
Views: 3,302
Posted By Slice
Re: inline-sort.inc - The solution to all your sorting needs

@Bradley7: Yeah that's a good idea. YSI has another thing called PlayerArray.

@ball: It's more convenient, but the speed is similar.
Forum: Includes 21/08/2016, 09:11 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Include weapon-config before the other things.



Which textdraw? When? Do you have a screenshot? I can't help you from that vague description.
Forum: Includes 21/08/2016, 12:10 PM
Replies: 822
Views: 135,066
Posted By Slice
Forum: Includes 20/08/2016, 12:16 AM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
if(weapon == 34) amount = 0.0; // Removes sniper damage.
return 1;
}
This does not work. 0.0 will kill the...
Forum: Includes 19/08/2016, 11:14 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

You can use SetPlayerHealth, just not inside OnPlayerDamage. Also IssueDamage.
Forum: Includes 19/08/2016, 10:11 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Don't use SetPlayerHealth inside OnPlayerDamage!!

You can modify "amount". If you set amount to 0.0, it will kill the player.
Forum: Includes 19/08/2016, 07:47 PM
Replies: 822
Views: 135,066
Posted By Slice
Forum: Includes 19/08/2016, 05:28 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Look at the documentation on GitHub. Use OnPlayerDamage.
Forum: Includes 19/08/2016, 03:10 PM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Well, the reason you get this error is because I prevent people from accidentally using OnPlayerGiveDamage/OnPlayerTakeDamage.

Those should never be used.

Either you can remove the from YSI...
Forum: Includes 19/08/2016, 11:40 AM
Replies: 822
Views: 135,066
Posted By Slice
Re: weapon-config.inc - Damage system with many features

Try updating wepon-config from GitHub.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 05:36 PM.


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