SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 10/06/2012, 12:50 PM   #11
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,334
Reputation: 251
Default Re: Cuffs - Easy cuffed players. Cuff offsets for ALL skins!

Pretty nice, i just like the effort to set the offset through all the skins. Good job.
__________________
TheArcher is offline   Reply With Quote
Old 12/06/2012, 04:13 AM   #12
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,235
Reputation: 1004
Default Re: Cuffs - Easy cuffed players. Cuff offsets for ALL skins!

Thanks.
__________________
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 12/06/2012, 04:02 PM   #13
[DOG]irinel1996
High-roller
 
[DOG]irinel1996's Avatar
 
Join Date: Jan 2010
Posts: 1,469
Reputation: 288
Default Respuesta: Cuffs - Easy cuffed players. Cuff offsets for ALL skins!

Really good job!

Ahh, another question, why per-player variables (PVars)? I heard they're not so good, at least in this cases, maybe you can script faster but I think it's not the best method. Apologies if I'm wrong.

Best regards, I can't imagine how hard/boring is go through all skins and get coordinates.
[DOG]irinel1996 is offline   Reply With Quote
Old 12/06/2012, 04:13 PM   #14
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,334
Reputation: 251
Default Re: Respuesta: Cuffs - Easy cuffed players. Cuff offsets for ALL skins!

Quote:
Originally Posted by irinel1996 View Post
Really good job!

Ahh, another question, why per-player variables (PVars)? I heard they're not so good, at least in this cases, maybe you can script faster but I think it's not the best method. Apologies if I'm wrong.
The difference between normal variables and PVars is that normal variables are faster but uses more memory and PVAr are slower but less memory. You need to know exactly when to use variables and when PVars to have a balanced performance.

Quote:

Best regards, I can't imagine how hard/boring is go through all skins and get coordinates.
I think he just use some editors but he did a good job though
__________________
TheArcher is offline   Reply With Quote
Old 12/06/2012, 04:54 PM   #15
[DOG]irinel1996
High-roller
 
[DOG]irinel1996's Avatar
 
Join Date: Jan 2010
Posts: 1,469
Reputation: 288
Default Respuesta: Re: Respuesta: Cuffs - Easy cuffed players. Cuff offsets for ALL skins!

Quote:
Originally Posted by TheArcher View Post
The difference between normal variables and PVars is that normal variables are faster but uses more memory and PVAr are slower but less memory. You need to know exactly when to use variables and when PVars to have a balanced performance.



I think he just use some editors but he did a good job though
Ok, thank you for the information.
About the coordinates, he posted his code, it's short, and fast. MP2 had a great idea.
[DOG]irinel1996 is offline   Reply With Quote
Old 12/06/2012, 04:55 PM   #16
rachit_rocks
Little Clucker
 
rachit_rocks's Avatar
 
Join Date: Jun 2012
Location: New-Delhi,India
Posts: 39
Reputation: 5
Default Re: Cuffs - Easy cuffed players. Cuff offsets for ALL skins!

Nice work dude....
rachit_rocks is offline   Reply With Quote
Old 12/06/2012, 07:30 PM   #17
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,235
Reputation: 1004
Default Re: Respuesta: Cuffs - Easy cuffed players. Cuff offsets for ALL skins!

Quote:
Originally Posted by irinel1996 View Post
Really good job!

Ahh, another question, why per-player variables (PVars)? I heard they're not so good, at least in this cases, maybe you can script faster but I think it's not the best method. Apologies if I'm wrong.

Best regards, I can't imagine how hard/boring is go through all skins and get coordinates.
Thanks.

They aren't as slow as people make out. They're okay for this sort of thing, because you may want to check if a player is cuffed from a remote script, and it's only set/read very rarely.

It took about an hour - and it was quite tedious. The worst part was that generally all the female skins had their wrists too close together so I couldn't do anything about it. The short script I made made it extremely easy and fast to do, spawn, drag the shiz out, click save, skin++ and repeat 300 times.
__________________
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 27/06/2012, 04:31 PM   #18
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,701
Reputation: 1177
Default Re: Cuffs - Easy cuffed players. Cuff offsets for ALL skins!

Nice work.
You are a good scripter.
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Old 27/06/2012, 11:25 PM   #19
Toreno
Gangsta
 
Join Date: Nov 2010
Posts: 725
Reputation: 41
Default Re: Cuffs - Easy cuffed players. Cuff offsets for ALL skins!

That's something I once had to do, I so get you right now!
I did the same with two weapons (AK47, M4A1) and set them on each skin's back.

Good job, man!
Toreno is offline   Reply With Quote
Old 28/06/2012, 12:05 AM   #20
StinkMoney
Big Clucker
 
StinkMoney's Avatar
 
Join Date: Jan 2011
Posts: 81
Reputation: 7
Default Re: Cuffs - Easy cuffed players. Cuff offsets for ALL skins!

Nice
__________________


Las Venturas Cops & Robbers (LVCNR)


================================================
SA-MP Server Live Status Monitor is back! Click here.
StinkMoney 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] fban.inc -> Easily ban players for certain amount of time fiki574 Includes 16 26/07/2015 02:01 PM
Rotating offsets from center of object SimonItaly Scripting Help 5 01/08/2014 03:03 PM
EditAttachedObject Camera/Cuff Offsets admiralspeedy Scripting Help 1 11/07/2014 12:34 AM
Should cuffed players be able to cuff around? Georgi166 Everything and Nothing 9 16/05/2012 05:40 AM


All times are GMT. The time now is 07:54 AM.


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