SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 311
Search took 0.01 seconds.
Search: Posts Made By: Stylock
Forum: Filterscripts 27/11/2016, 12:46 PM
Replies: 85
Views: 28,861
Posted By Stylock
Forum: Filterscripts 21/11/2016, 11:44 PM
Replies: 64
Views: 25,844
Posted By Stylock
Re: Universal Object Editor (attach roads, generate loops)

Sorry, but I don't have the package anymore. What you need to do is:

1. Create a blank pawn file in the filterscripts folder.
2. Copy the code from pastebin (http://pastebin.com/fJkQX4Cw) and...
Forum: Includes 29/03/2015, 02:25 PM
Replies: 24
Views: 5,217
Posted By Stylock
Forum: Filterscripts 28/02/2015, 02:25 PM
Replies: 64
Views: 25,844
Posted By Stylock
Re: Universal Object Editor (attach roads, generate loops)

I thought about adding object group feature, but it's quite hard to implement at this stage to work with the undo feature etc. And I don't see the need for texturing since your Texture Studio already...
Forum: Tutorials 28/02/2015, 02:21 PM
Replies: 14
Views: 29,081
Posted By Stylock
Re: Texture Studio Tutorial Videos

Very nicely done :eek: I must test this. I never knew Texture Studio was also an object editor. I guess the name was kinda misleading to me.
Forum: Filterscripts 28/02/2015, 01:48 PM
Replies: 64
Views: 25,844
Posted By Stylock
Re: Universal Object Editor (attach roads, generate loops)

Update 3 is out! Here's the changelog:

-Added map import feature. You can now import any map that has CreateObject, CreateDynamicObject or CreateWhateverObject into the editor. Thanks to sscanf...
Forum: Scripting Help 25/10/2014, 10:33 PM
Replies: 22
Views: 2,247
Posted By Stylock
Re: GetAttachedObjectPos

Calculate the 2D distance between the player and the object.

d = floatsqroot(offset_x * offset_x + offset_y * offset_y) ; // offset_x and offset_y are the offsets of the attached object
...
Forum: Includes 21/10/2013, 10:36 PM
Replies: 7
Views: 4,062
Posted By Stylock
Forum: Scripting Help 01/09/2013, 08:18 PM
Replies: 6
Views: 462
Posted By Stylock
Re: Timestamp problem

Did you edit the part where it's dividing the timestamp by 3600?
time = bExpiration - gettime() / 3600;
// change to
time = bExpiration - gettime();
Forum: Scripting Help 01/09/2013, 02:38 PM
Replies: 6
Views: 462
Posted By Stylock
Re: Timestamp problem

Just don't convert the current timestamp to hours before substracting it from the expiration timestamp. Also, here's a faster method:
d = time / 86400, // compute days
time = time % 86400,
h =...
Forum: Scripting Help 20/08/2013, 09:59 PM
Replies: 5
Views: 1,088
Posted By Stylock
Re: SQL crashing

Do you use any programs/tools to test your queries? I'd recommend SQLite Manager (Firefox addon).
Forum: Scripting Help 20/08/2013, 09:14 PM
Replies: 5
Views: 1,088
Posted By Stylock
Re: SQL crashing

It crashes on null values. You could use the DEFAULT constraint when creating tables. Example:
CREATE TABLE IF NOT EXISTS bla (
id_bla INTEGER PRIMARY KEY,
text TEXT DEFAULT '',
money INTEGER...
Forum: Scripting Help 18/08/2013, 03:51 PM
Replies: 7
Views: 737
Posted By Stylock
Re: SQL Not reading the account in the database

I can tell you that mysql log has nothing to do with SQLite. But I won't be helping any further unless you educate yourself on password hashing.
Forum: Includes 13/08/2013, 12:18 AM
Replies: 7
Views: 4,062
Posted By Stylock
SA-MP Spike Strips (include)

SA-MP Spike Strips

Brief description
(spike strip, traffic spikes, tire shredders, one-way traffic treadles, stingers, stop sticks, tire deflation device)
This is an include version of SA-MP...
Forum: Plugin Development 08/08/2013, 05:32 PM
Replies: 19
[Plugin] [REL] Encrypt
Views: 18,578
Posted By Stylock
Re: [REL] Encrypt

There's a bug when I try to use sha2_hmac:

Erorr native function sha2_file: Expecting 3 parameter(s), but found 4


I think it's most definitely related to this piece of code:
...
Forum: Everything and Nothing 08/07/2013, 10:51 PM
Replies: 52
Views: 4,071
Posted By Stylock
Re: What do you do when you are lucid dreaming?

I try not to get too excited.
Forum: Scripting Help 07/07/2013, 04:27 PM
Replies: 14
Views: 1,130
Posted By Stylock
Re: Angle from Coordinates

GetPlayerCameraFrontVector returns the direction that you're aiming at, but I'm not sure what it is that you want so I can't help you further.
Forum: Includes 07/07/2013, 04:19 PM
Replies: 68
Views: 15,822
Posted By Stylock
Re: FairPlay - Keep the cheaters out

Yes, I've also read this (http://forum.sa-mp.com/showthread.php?t=268499) topic and I've not been a fan of PVars ever since. Sometimes I find them useful tough, but not in cases like this:

new ...
Forum: Scripting Help 07/07/2013, 12:38 PM
Replies: 14
Views: 1,130
Posted By Stylock
Re: Angle from Coordinates

I still have no idea what you're asking.
Forum: Includes 07/07/2013, 12:22 PM
Replies: 68
Views: 15,822
Posted By Stylock
Re: FairPlay - Keep the cheaters out

I think in a script like this PVars are pretty applicable. To make it filterscript compatible, you'd just need to do:

#if defined FP_MASTER

// The main code

#endif

// Hooked functions...
Forum: Includes 07/07/2013, 01:27 AM
Replies: 68
Views: 15,822
Posted By Stylock
Re: FairPlay - Keep the cheaters out

Nice script, but I don't see any big improvement from your old anti-cheat (svCheat). It's just a slightly edited version of it. I don't think it's false positive proof mainly because it doesn't take...
Forum: Scripting Help 06/07/2013, 11:37 AM
Replies: 2
Views: 2,038
Posted By Stylock
Re: Object size

I think SetPlayerAttachedObject is the only function with which you can scale objects.

http://wiki.sa-mp.com/wiki/SetPlayerAttachedObject
Forum: Filterscripts 06/07/2013, 11:27 AM
Replies: 28
[FilterScript] SA-MP Spike Strips
Views: 7,538
Posted By Stylock
Re: SA-MP Spike Strips

No it's not, arguments are in wrong order.
Forum: Filterscripts 06/07/2013, 11:16 AM
Replies: 28
[FilterScript] SA-MP Spike Strips
Views: 7,538
Posted By Stylock
Re: SA-MP Spike Strips

By downloading the latest update, but if you don't want, change the argument order in SetTimer function.
SetTimer("SS_GetTickCount", 50, true);
Forum: Filterscripts 06/07/2013, 11:10 AM
Replies: 28
[FilterScript] SA-MP Spike Strips
Views: 7,538
Posted By Stylock
Re: SA-MP Spike Strips

Thanks, I might add an option for that in the next update.
Showing results 1 to 25 of 311

 

All times are GMT. The time now is 04:31 PM.


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