SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 02/05/2018, 05:06 PM   #1
OsmanMalagic
Little Clucker
 
Join Date: Jul 2016
Location: EX-YU
Posts: 40
Reputation: 51
Default Function DisableRemoteVehicleCollisions Not work in 0.3.7

Function DisableRemoteVehicleCollisions not work for me and also for other players.
My vehicle cannot pass through other car
Example of code:

PHP Code:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/collision"true))
    {
        new 
string[64];
 
        
format(stringsizeof(string), "Vehicle collision for you is now '%s'", (GetPVarInt(playerid"vehCollision") != 1) ? ("Disabled") : ("Enabled"));
        
SendClientMessage(playerid0xFFFFFFFFstring);
 
        
SetPVarInt(playerid"vehCollision", !GetPVarInt(playerid"vehCollision"));
 
        
DisableRemoteVehicleCollisions(playeridGetPVarInt(playerid"vehCollision"));
        return 
1;
    }
    return 
0;

My vehicle cannot pass through other car
I try to find any possible solution to fix this, and also all my Includes are updated to new version.
Any ideas for my next try are welcome
OsmanMalagic is offline   Reply With Quote
Old 02/05/2018, 06:02 PM   #2
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Location: 🇩🇪
Posts: 1,774
Reputation: 619
Default Re: Function DisableRemoteVehicleCollisions Not work in 0.3.7

Just making sure, do you refer to other occupied cars?

This function will only allow your car to pass through cars which are driven by other players or an NPC, however not through empty vehicles.
NaS is offline   Reply With Quote
Old 02/05/2018, 07:38 PM   #3
OsmanMalagic
Little Clucker
 
Join Date: Jul 2016
Location: EX-YU
Posts: 40
Reputation: 51
Default Re: Function DisableRemoteVehicleCollisions Not work in 0.3.7

Quote:
Originally Posted by NaS View Post
Just making sure, do you refer to other occupied cars?

This function will only allow your car to pass through cars which are driven by other players or an NPC, however not through empty vehicles.
I tried this with my friend, the command has been executed like normal, but nothing happened.
I was in the driver's seat as my friend and I hit his vehicle and I did not succeed, I refused..
I tried with the NPC car and now it works
Strange this function
OsmanMalagic is offline   Reply With Quote
Old 28/07/2018, 01:12 AM   #4
MaisterK
Little Clucker
 
Join Date: Sep 2015
Posts: 18
Reputation: 0
Default Re: Function DisableRemoteVehicleCollisions Not work in 0.3.7

This function does not work for me either. It does not work on npcs or players, I use 0.3dl server

Does anyone know of any solution?
MaisterK 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
DisableRemoteVehicleCollisions Onfroi Scripting Help 2 23/12/2016 08:20 PM
DisableRemoteVehicleCollisions doesn't work at all AdrianG Scripting Help 4 19/04/2016 11:59 PM
DisableRemoteVehicleCollisions function doesnt work on Helicopters Rotor Morpheus1992 Scripting Help 5 01/03/2015 07:28 PM
DisableRemoteVehicleCollisions function doesnt work on boats Morpheus1992 Scripting Help 9 30/01/2015 01:45 AM
function doesnt work as i want it to work. legodude Help Archive 0 14/03/2011 02:25 PM


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


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