SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 22/06/2019, 10:07 AM   #1
playstores
Big Clucker
 
Join Date: Feb 2018
Posts: 148
Reputation: 3
Default Player Teleporting To Player

Works only 1 Time

I already tested < > on gettime but I can't find the right way

https://pastebin.com/mFB3w6Kv
playstores is offline   Reply With Quote
Old 22/06/2019, 10:46 AM   #2
playstores
Big Clucker
 
Join Date: Feb 2018
Posts: 148
Reputation: 3
Default Re: Player Teleporting To Player

////
playstores is offline   Reply With Quote
Old 22/06/2019, 11:36 AM   #3
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Croatia.
Posts: 592
Reputation: 117
Default Re: Player Teleporting To Player

I need more infromations what are you trying to do.
Bolex_ is offline   Reply With Quote
Old 22/06/2019, 12:30 PM   #4
playstores
Big Clucker
 
Join Date: Feb 2018
Posts: 148
Reputation: 3
Default Re: Player Teleporting To Player

The Player can teleport to players that he is aiming but only every 20 Seconds
playstores is offline   Reply With Quote
Old 22/06/2019, 12:46 PM   #5
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 275
Reputation: 22
Default Re: Player Teleporting To Player

Gettime returns time in seconds since somewhere in the 1970s.
Gettime + 20000 makes the cooldown 20000 seconds long. That is about 333 minutes or 6 hours.
Plastikmensch is offline   Reply With Quote
Old 22/06/2019, 01:19 PM   #6
playstores
Big Clucker
 
Join Date: Feb 2018
Posts: 148
Reputation: 3
Default Re: Player Teleporting To Player

And how to write it correctly? I used this function alot and it always worked like I expected

Except now
playstores is offline   Reply With Quote
Old 22/06/2019, 01:34 PM   #7
playstores
Big Clucker
 
Join Date: Feb 2018
Posts: 148
Reputation: 3
Default Re: Player Teleporting To Player

any Idees?
playstores is offline   Reply With Quote
Old 22/06/2019, 01:37 PM   #8
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 275
Reputation: 22
Default Re: Player Teleporting To Player

Code 101: Never assume something works as expected.

gettime() + 20 for current time + 20 seconds.
Plastikmensch 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
player teleporting while not permision help for +rep Aldrago Scripting Help 4 10/06/2017 12:44 PM
Teleporting vehicle to interior - player not synced Antonio144 Scripting Help 5 06/07/2013 06:18 PM
Teleporting player in Vehicle ? Rickyboy30 Help Archive 1 02/11/2009 05:52 PM
Teleporting cars with the player to interiors... Anthony413 Help Archive 4 28/07/2009 09:49 PM
teleporting to another player / tele other player to me StrickenKid Help Archive 9 05/02/2009 04:41 PM


All times are GMT. The time now is 08:08 PM.


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