SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Function DisableRemoteVehicleCollisions Not work in 0.3.7 (https://forum.sa-mp.com/showthread.php?t=653368)

OsmanMalagic 02/05/2018 05:06 PM

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 :)

NaS 02/05/2018 06:02 PM

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.

OsmanMalagic 02/05/2018 07:38 PM

Re: Function DisableRemoteVehicleCollisions Not work in 0.3.7
 
Quote:

Originally Posted by NaS (Post 4016972)
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 :confused:
Strange this function

MaisterK 28/07/2018 01:12 AM

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?


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

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