Conflict FS - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Conflict FS (
/showthread.php?tid=643259)
Conflict FS -
Leonaardo - 16.10.2017
Well, I found this FS and wanted to use it on the server, it worked well on my GM, but it conflicted with the command that creates vehicles for Admins (/ Cv)
When an Admin creates a vehicle, that vehicle comes as owner of the Old Player who sold his vehicle from the Concessionaire ... That is, if a player buys a vehicle and then sells it, Admin can not use the vehicle created by the command (/ Cv) pq comes with the Data of the last player who sold your vehicle!
And that makes it impossible for Admin to ride with his vehicles built to help new players!
I tried several steps of my knowledge, nothing else solved!
If someone is willing to help, call MP, or any suggestions below.
My Command:
https://pastebin.com/Srverrb1 (/ Cv)
FS:
https://pastebin.com/GLYxxKC1
Print:
https://i.imgur.com/zDnyxOZ.png
Thank you!
Re: Conflict FS -
Leonaardo - 16.10.2017
UP! UP!
Re: Conflict FS -
Escobabe - 16.10.2017
Using filterscripts in most cases will fuck up the gamemode after some time, either try to implent the FS into the gamemode, or delete the admin command.
Re: Conflict FS -
StrikerZ - 17.10.2017
What I do to make gamemodes is, instead of making filterscripts I make a seperate file just like a filterscript.
I replace all the public functions of the script with stocks and type the stock names in the original publics of the gamemode
For example :-
PHP код:
public OnGameModeInit() to OnGInit() // In the script (not gamemode)
PHP код:
public OnGameModeInit() // In gamemode
{
OnGInit();
}
I hope you understood what I tried to explain above ^.
Re: Conflict FS -
Leonaardo - 17.10.2017
Quote:
Originally Posted by Escobabe
Using filterscripts in most cases will fuck up the gamemode after some time, either try to implent the FS into the gamemode, or delete the admin command.
|
I understand, but what I wanted to do was to deploy FS to my Gamemode, but I did conflict with the command!
Re: Conflict FS -
Leonaardo - 17.10.2017
Quote:
Originally Posted by Sunehildeep
What I do to make gamemodes is, instead of making filterscripts I make a seperate file just like a filterscript.
I replace all the public functions of the script with stocks and type the stock names in the original publics of the gamemode
For example :-
PHP код:
public OnGameModeInit() to OnGInit() // In the script (not gamemode)
PHP код:
public OnGameModeInit() // In gamemode
{
OnGInit();
}
I hope you understood what I tried to explain above ^.
|
Yes I understood !
I will put it into practice and see if it will solve, thanks for the tip.