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
Location: Iran
Posts: 1,445
Reputation: 366
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: Kingdom of Pakistan Reputation: 9999
Posts: 1,222
Reputation: 348
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

Code:
PLUGIN_EXPORT int PLUGIN_CALL AmxLoad(AMX *amx)
{
	 globalamx = amx;
	 return amx_Register(amx, projectNatives, -1);
}
__________________
🍔🍔🍔🍔🍔🍔🍔🍔🍔🍔🍔🍔
Freshncool is offline   Reply With Quote
Old 14/06/2018, 11:53 AM   #23
jlalt
High-roller
 
Join Date: Oct 2014
Location: Iran
Posts: 1,445
Reputation: 366
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: Kingdom of Pakistan Reputation: 9999
Posts: 1,222
Reputation: 348
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.
__________________
🍔🍔🍔🍔🍔🍔🍔🍔🍔🍔🍔🍔
Freshncool is offline   Reply With Quote
Old 14/06/2018, 12:46 PM   #25
jlalt
High-roller
 
Join Date: Oct 2014
Location: Iran
Posts: 1,445
Reputation: 366
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: 997
Reputation: 298
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

what in the world means semi-dynamic?
BigETI is online now   Reply With Quote
Old 14/06/2018, 01:43 PM   #27
jlalt
High-roller
 
Join Date: Oct 2014
Location: Iran
Posts: 1,445
Reputation: 366
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,943
Reputation: 1468
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.
[HLF]Southclaw is online now   Reply With Quote
Old 14/06/2018, 11:34 PM   #29
Deadpoop
Big Clucker
 
Deadpoop's Avatar
 
Join Date: Jul 2016
Posts: 114
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
Old 15/06/2018, 12:02 AM   #30
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,273
Reputation: 1137
Default Re: SDV ( Semi Dynamic Vehicle ) Plugin

on a side note since ppl bashing your work

good job, im sure there will be some few that may find use with it
__________________
Join the best Cops And Robbers in SA-MP, today. svr.irresistiblegaming.com:7777

Lorenc_ 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 08:58 AM.


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