pawn Код:
if (strcmp("/doors", cmdtext, true, 10) == 0)
{
if(GetPVarInt(playerid, "doors") == 0)
{
GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(carid,engine,lights,alarm,1,bonnet,boot,objective);
SetPVarInt(playerid, "doors", 1);
}
else if(GetPVarInt(playerid, "doors") == 1)
{
GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(carid,engine,lights,alarm,0,bonnet,boot,objective);
SetPVarInt(playerid, "doors", 0);
}
return 1;
}