02.05.2018, 17:06
Function DisableRemoteVehicleCollisions not work for me and also for other players.
My vehicle cannot pass through other car
Example of code:
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
My vehicle cannot pass through other car
Example of code:
PHP Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/collision", true))
{
new string[64];
format(string, sizeof(string), "Vehicle collision for you is now '%s'", (GetPVarInt(playerid, "vehCollision") != 1) ? ("Disabled") : ("Enabled"));
SendClientMessage(playerid, 0xFFFFFFFF, string);
SetPVarInt(playerid, "vehCollision", !GetPVarInt(playerid, "vehCollision"));
DisableRemoteVehicleCollisions(playerid, GetPVarInt(playerid, "vehCollision"));
return 1;
}
return 0;
}
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