SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 18/08/2019, 06:20 AM   #1
Z3nx31L
Little Clucker
 
Join Date: Aug 2019
Posts: 31
Reputation: 0
Default Help me

help! how i can convert timestamp to date or date to timestamp i need for my ban system, etc
__________________

IND TEAM
Z3nx31L Is Here
Z3nx31L is offline   Reply With Quote
Old 18/08/2019, 06:28 AM   #2
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 299
Reputation: 20
Default Re: Help me

Take a look at this
https://pastebin.com/7LQB5Ki1

Thread: https://forum.sa-mp.com/showthread.php?t=347605
__________________
Hey guys,
We've just started up our own hosting company and we are offering cheap game hosting. Our SAMP servers start at only $0.50 cents for 32 slots per month, or $1.50 for 64. We have ONE FREE spot left for a first month free subscription for any game host of your choice. We host most many major games such as SAMP, Call of Duty, 7 Days to Die, Minecraft, CounterStrike, ARK: Survival Evolved, and many more!

Cheapest hosting company official site : http://main-hosts.com/

Cheap Hosting Company is looking for an experience staff.

Sign up to our forums and Control Panel and order one of our cheap game servers. First to sign up will receive a free SA:MP server! Join on discord https://discord.gg/J82JgQJ for more information!

Quote:
Originally Posted by Toroi View Post
blackmail people that join your server using their ip address as hostage

or get a job and play sa-mp for fun
SiaReyes is offline   Reply With Quote
Old 18/08/2019, 06:39 AM   #3
Calisthenics
Gangsta
 
Join Date: May 2018
Posts: 662
Reputation: 96
Default Re: Help me

If you have MySQL, use datetime datatype + in-build date and time functions. Or else: https://github.com/Southclaws/pawn-chrono/
Calisthenics is offline   Reply With Quote
Old 18/08/2019, 07:16 AM   #4
Z3nx31L
Little Clucker
 
Join Date: Aug 2019
Posts: 31
Reputation: 0
Default Re: Help me

Quote:
Originally Posted by SiaReyes View Post
I using this but not accurate
__________________

IND TEAM
Z3nx31L Is Here
Z3nx31L is offline   Reply With Quote
Old 18/08/2019, 07:21 AM   #5
Z3nx31L
Little Clucker
 
Join Date: Aug 2019
Posts: 31
Reputation: 0
Default Re: Help me

Quote:
Originally Posted by Calisthenics View Post
If you have MySQL, use datetime datatype + in-build date and time functions. Or else: https://github.com/Southclaws/pawn-chrono/
i dont know how to use chrono
__________________

IND TEAM
Z3nx31L Is Here
Z3nx31L is offline   Reply With Quote
Old 18/08/2019, 09:31 AM   #6
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 299
Reputation: 20
Default Re: Help me

Quote:
Originally Posted by Z3nx31L View Post
I using this but not accurate
Then try this https://forum.sa-mp.com/showthread.php?t=294054.
Example:

pawn Code:
new tm<tmParam>;

CMD:gettime(playerid)
{
   new time = gettime(), timestr[40];
   localtime(time, tmParam);
   strftime(timestr, sizeof(timestr), "%d/%m/%Y %H:%M.%S", tmParam);
   SendClientMessage(playerid, -1, timestr);
   return 1;
}
__________________
Hey guys,
We've just started up our own hosting company and we are offering cheap game hosting. Our SAMP servers start at only $0.50 cents for 32 slots per month, or $1.50 for 64. We have ONE FREE spot left for a first month free subscription for any game host of your choice. We host most many major games such as SAMP, Call of Duty, 7 Days to Die, Minecraft, CounterStrike, ARK: Survival Evolved, and many more!

Cheapest hosting company official site : http://main-hosts.com/

Cheap Hosting Company is looking for an experience staff.

Sign up to our forums and Control Panel and order one of our cheap game servers. First to sign up will receive a free SA:MP server! Join on discord https://discord.gg/J82JgQJ for more information!

Quote:
Originally Posted by Toroi View Post
blackmail people that join your server using their ip address as hostage

or get a job and play sa-mp for fun
SiaReyes 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



All times are GMT. The time now is 11:25 AM.


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