SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 02/07/2015, 01:17 PM   #11
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,106
Reputation: 128
Default Re: samp.js - JavaScript for SA-MP

Quote:
Originally Posted by !damo!spiderman View Post
Callbacks are a bit tricky... I will try and work out a nice way to incorporate them... There are functions so you can call javascript from pawn so you could do it in a round about way currently.
Yeah i know callbacks are a bit tricky but just include them in plugin...If they are not called ever there is no harm, if they dont exist well that is problem xD
__________________
Путин here,
Путин there,
Путин просто everywhere.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is offline   Reply With Quote
Old 02/07/2015, 01:25 PM   #12
LMaxCo
Big Clucker
 
Join Date: Dec 2014
Location: SA-MP Forums - Powered by VBulletin.
Posts: 158
Reputation: 11
Default Re: samp.js - JavaScript for SA-MP

Thats cool dude
LMaxCo is offline   Reply With Quote
Old 02/07/2015, 02:32 PM   #13
Maximun
Gangsta
 
Join Date: Jan 2014
Location: Localhost
Posts: 653
Reputation: 29
Default Re: samp.js - JavaScript for SA-MP

Cool!
Maximun is offline   Reply With Quote
Old 02/07/2015, 06:49 PM   #14
lukewid
Little Clucker
 
Join Date: Mar 2015
Posts: 35
Reputation: 0
Default Re: samp.js - JavaScript for SA-MP

I'm happy to see this here!

Congratz!
lukewid is offline   Reply With Quote
Old 02/07/2015, 07:05 PM   #15
FSAOskar
Big Clucker
 
Join Date: Feb 2015
Location: Germany
Posts: 94
Reputation: 22
Default AW: samp.js - JavaScript for SA-MP

One question, is it possible to make something like live scripting ?
I mean as soon as you save the script, all changes get applied to the running server and you don't have to reload the script ?
FSAOskar is offline   Reply With Quote
Old 02/07/2015, 08:04 PM   #16
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,426
Reputation: 399
Default Re: samp.js - JavaScript for SA-MP

This isn't MTA, I don't think you can actively restart the gamemode without having players reconnect. And a scripting language doesn't really change that.
Abagail is offline   Reply With Quote
Old 02/07/2015, 08:07 PM   #17
PT
Godfather
 
PT's Avatar
 
Join Date: Nov 2012
Location: Portugal
Posts: 7,049
Reputation: 730
Default Re: samp.js - JavaScript for SA-MP

This is really an nice Job.
good work dude.
__________________
"Quem caiu e se levantou honrado era e honrado ficou..."


http://steamcommunity.com/id/pt_player/
PT is offline   Reply With Quote
Old 02/07/2015, 08:08 PM   #18
KingHual
High-roller
 
KingHual's Avatar
 
Join Date: Jun 2010
Location: Bulgaria
Posts: 2,423
Reputation: 1299
Default Re: samp.js - JavaScript for SA-MP

Quote:
Originally Posted by Abagail View Post
This isn't MTA, I don't think you can actively restart the gamemode without having players reconnect. And a scripting language doesn't really change that.
It's more than possible.
__________________
KingHual is offline   Reply With Quote
Old 02/07/2015, 08:12 PM   #19
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,426
Reputation: 399
Default Re: samp.js - JavaScript for SA-MP

Quote:
Originally Posted by KingHual View Post
It's more than possible.
The players have to reconnect to restart the gamemode to my knowledge(when the server gmx'es they still reconnect ).
Abagail is offline   Reply With Quote
Old 02/07/2015, 08:13 PM   #20
GWMPT
High-roller
 
Join Date: Nov 2012
Location: Portugal.
Posts: 1,051
Reputation: 286
Default Re: samp.js - JavaScript for SA-MP

Quote:
Originally Posted by Abagail View Post
This isn't MTA, I don't think you can actively restart the gamemode without having players reconnect. And a scripting language doesn't really change that.
When you restart a script, you don't really need to call OnPlayerConnect, or OnPlayerDisconnect
Anyways, if it's needed, you can fake these calls.
After all, they are only callbacks.
GWMPT 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
javascript. Banditukas Everything and Nothing 18 04/04/2015 05:00 PM
[Pedido] botão: script/ HTML/ JAVASCRIPT | SAMP FOLDER/FILE MestreSmart Português/Portuguese 6 28/02/2015 05:16 PM
Use PHP in javascript Banditukas Everything and Nothing 5 08/11/2014 05:44 AM
[Pedido] JavaScript e C++ RiqueP Português/Portuguese 6 27/04/2014 09:50 AM
javascript samp:// [Ger]Little_Grandpa Help Archive 6 21/08/2010 06:24 PM


All times are GMT. The time now is 10:57 PM.


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