SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 13/06/2018, 08:24 PM   #21
jlalt
High-roller
 
Join Date: Oct 2014
Posts: 1,398
Reputation: 342
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

Quote:
Originally Posted by DTV View Post
I think he means the grey blips on the map that show where a vehicle is on the minimap.
Oh, I don't think that's possible.

AttachPlayerToVehicle, that's not possible too as samp itself doesn't allow this feature so far ;-;.
jlalt is offline   Reply With Quote
Old 14/06/2018, 11:32 AM   #22
Freshncool
High-roller
 
Freshncool's Avatar
 
Join Date: Aug 2014
Location: United Kingdom, England.
Posts: 1,170
Reputation: 317
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

Code:
PLUGIN_EXPORT int PLUGIN_CALL AmxLoad(AMX *amx)
{
	 globalamx = amx;
	 return amx_Register(amx, projectNatives, -1);
}
__________________
haha
Freshncool is offline   Reply With Quote
Old 14/06/2018, 11:53 AM   #23
jlalt
High-roller
 
Join Date: Oct 2014
Posts: 1,398
Reputation: 342
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

Quote:
Originally Posted by Freshncool View Post
Code:
PLUGIN_EXPORT int PLUGIN_CALL AmxLoad(AMX *amx)
{
	 globalamx = amx;
	 return amx_Register(amx, projectNatives, -1);
}
I am not that good in c++, may you tell me how to call a public / callback from sampgdk callback?

PHP Code:
PLUGIN_EXPORT void PLUGIN_CALL OnPlayerEnterVehicle(int playeridint vehicleidbool ispassenger)
{
    if (
IsDynamicVehicle(vehicleid))
    {
        
ExecuteFunction("OnPlayerEnterDynamicVehicle", { playerid, (VDynamicID[vehicleid] + 1), ispassenger }, {});
    }

ExecuteFunction uses that globalamx, and I really don't know if its possible to call a callback without having the *amx, is it?
jlalt is offline   Reply With Quote
Old 14/06/2018, 11:54 AM   #24
Freshncool
High-roller
 
Freshncool's Avatar
 
Join Date: Aug 2014
Location: United Kingdom, England.
Posts: 1,170
Reputation: 317
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

If I load a filterscript during server run time; all callbacks from the plugin will be called to it.
__________________
haha
Freshncool is offline   Reply With Quote
Old 14/06/2018, 12:46 PM   #25
jlalt
High-roller
 
Join Date: Oct 2014
Posts: 1,398
Reputation: 342
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

Quote:
Originally Posted by Freshncool View Post
If I load a filterscript during server run time; all callbacks from the plugin will be called to it.
Thanks for the report!.
Supposed to be fixed now also added a new function. [ AttachDynamicObjectToDVehicle ]
jlalt is offline   Reply With Quote
Old 14/06/2018, 01:22 PM   #26
BigETI
Gangsta
 
BigETI's Avatar
 
Join Date: Mar 2010
Location: Germany
Posts: 975
Reputation: 270
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

what in the world means semi-dynamic?
BigETI is offline   Reply With Quote
Old 14/06/2018, 01:43 PM   #27
jlalt
High-roller
 
Join Date: Oct 2014
Posts: 1,398
Reputation: 342
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

Quote:
Originally Posted by BigETI View Post
what in the world means semi-dynamic?
if you've went a bit up in the replies you would have knew why its named like that sir ;-;

http://forum.sa-mp.com/showpost.php?...8&postcount=14
jlalt is offline   Reply With Quote
Old 14/06/2018, 01:47 PM   #28
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,883
Reputation: 1443
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

I wrote a plugin boilerplate specifically for helping people learn how to write good plugins, it's on my GitHub and contains examples of this very thing.
__________________
Tools:

Plugins:

Links:

[HLF]Southclaw is offline   Reply With Quote
Old 14/06/2018, 03:34 PM   #29
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,416
Reputation: 1224
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

Quote:
Originally Posted by [HLF]Southclaw View Post
I wrote a plugin boilerplate specifically for helping people learn how to write good plugins, it's on my GitHub and contains examples of this very thing.
If you were a bi-sexual Muslim you would have no end of virgin wives and husbands from the SA-MP forums.
Pottus is offline   Reply With Quote
Old 14/06/2018, 11:34 PM   #30
Deadpoop
Big Clucker
 
Deadpoop's Avatar
 
Join Date: Jul 2016
Posts: 111
Reputation: 3
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

Can this create dynamic weed so i can make it not stream for the cops?
__________________
RELEASES:
































Deadpoop 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
[FilterScript] [E.V.O] Elite Vehicle Ownership [V1.0] [Dynamic Vehicle System] DarkSkull Filterscripts 10 20/05/2018 06:02 PM
Dynamic Vehicle morocco Scripting Help 1 20/07/2013 08:47 PM
Dynamic Vehicle morocco Scripting Help 0 19/07/2013 07:03 AM
Dynamic Vehicle Tanush123 Scripting Help 4 07/07/2013 11:54 PM


All times are GMT. The time now is 10:45 AM.


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