20/10/2023 10:12
https://sampwiki.blast.hk/wiki/DisableRe...Collisions
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;
}
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;
}